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

Commitb5d781c

Browse files
author
Jim Puls
committed
Merge pull request#3 from ios/puls/storyboard-name
Add the storyboard name as a constant.
2 parentsfbfdd57 +297391a commitb5d781c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎identifierconstants/IDStoryboardDumper.m

Lines changed: 3 additions & 1 deletion
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,6 +46,7 @@ - (void)startWithCompletionHandler:(dispatch_block_t)completionBlock;
4546
self.implementationContents = [NSMutableArrayarray];
4647

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp