Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit297391a

Browse files
author
Jim Puls
committed
Support storyboard names with spaces
1 parent44e38a8 commit297391a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎identifierconstants/IDStoryboardDumper.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ + (NSString *)inputFileExtension;
2727
- (void)startWithCompletionHandler:(dispatch_block_t)completionBlock;
2828
{
2929
self.skipClassDeclaration =YES;
30-
NSString *storyboardName = [[[self.inputURLlastPathComponent]stringByDeletingPathExtension]stringByReplacingOccurrencesOfString:@""withString:@""];
30+
NSString *storyboardFilename = [[self.inputURLlastPathComponent]stringByDeletingPathExtension];
31+
NSString *storyboardName = [storyboardFilenamestringByReplacingOccurrencesOfString:@""withString:@""];
3132

3233
self.className = [NSStringstringWithFormat:@"%@%@StoryboardIdentifiers",self.classPrefix, storyboardName];
3334
NSError *error =nil;
@@ -45,7 +46,7 @@ - (void)startWithCompletionHandler:(dispatch_block_t)completionBlock;
4546
self.implementationContents = [NSMutableArrayarray];
4647

4748
NSMutableDictionary *uniqueKeys = [NSMutableDictionarydictionary];
48-
uniqueKeys[[NSStringstringWithFormat:@"%@%@StoryboardName",self.classPrefix, storyboardName]] =storyboardName;
49+
uniqueKeys[[NSStringstringWithFormat:@"%@%@StoryboardName",self.classPrefix, storyboardName]] =storyboardFilename;
4950

5051
for (NSString *identifier in identifiers) {
5152
NSString *key = [NSStringstringWithFormat:@"%@%@Storyboard%@Identifier",self.classPrefix, storyboardName, [identifierIDS_titlecaseString]];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp