Skip to content

Commit b5d781c

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

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.inputURL lastPathComponent] stringByDeletingPathExtension]stringByReplacingOccurrencesOfString:@" " withString:@""];
30+
NSString *storyboardFilename = [[self.inputURL lastPathComponent] stringByDeletingPathExtension];
31+
NSString *storyboardName = [storyboardFilename stringByReplacingOccurrencesOfString:@" " withString:@""];
3132

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

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

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

0 commit comments

Comments
 (0)