This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Error] TypeError: 'undefined' is not an object (evaluating 'e[0]') | |
n (337f27a6c3093ed3390715e341936bf3aeca7631.js, line 11) | |
replace (337f27a6c3093ed3390715e341936bf3aeca7631.js, line 12) | |
i (337f27a6c3093ed3390715e341936bf3aeca7631.js, line 12) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (instancetype)newTempMainContext | |
{ | |
NSManagedObjectContext *parentContext = [[NSManagedObjectContext alloc] initWithConcurrencyType:NSPrivateQueueConcurrencyType]; | |
[parentContext performBlockAndWait:^{ | |
[parentContext setPersistentStoreCoordinator:[NSPersistentStoreCoordinator defaultStoreCoordinator]]; | |
}]; | |
NSManagedObjectContext *tempContext = [NSManagedObjectContext newMainQueueContext]; | |
[tempContext setParentContext:parentContext]; | |
return tempContext; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation UIWindow (FirstResponder) | |
- (BOOL)canBecomeFirstResponder { | |
return YES; | |
} | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)printOut { | |
NSArray *days = @[@"Sunday", @"Monday", @"Tuesday", @"Wednesday", @"Thursday", @"Friday", @"Saturday"]; | |
for( NSString *day in days ) { | |
NSLog(@"day = %@",day); | |
} | |
} |