This file contains 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
AA, | |
AB, | |
AC, | |
AD, | |
AE, | |
AF, | |
AG, | |
AH, | |
AI, | |
AJ, |
This file contains 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
//initial string | |
NSString *str = @"the quick brown fox jumped over the fence"; | |
//convert string to array of characters | |
NSMutableArray *stringArray = [NSMutableArray array]; | |
[str enumerateSubstringsInRange:NSMakeRange(0, str.length) | |
options:NSStringEnumerationByComposedCharacterSequences | |
usingBlock:^(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop) { | |
[stringArray addObject:[substring lowercaseString]]; | |
}]; |
This file contains 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)perform { | |
UIViewController *sourceController = self.sourceViewController; | |
UIViewController *destinationController = self.destinationViewController; | |
UIView *destView = destinationController.view; | |
destView.alpha = 0; | |
[sourceController.view addSubview:destView]; | |
destView.frame = CGRectMake(0, 0, | |
CGRectGetWidth(sourceController.view.bounds), |
This file contains 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
func delay(delay:Double, closure:()->()) { | |
dispatch_after( | |
dispatch_time( | |
DISPATCH_TIME_NOW, | |
Int64(delay * Double(NSEC_PER_SEC)) | |
), | |
dispatch_get_main_queue(), closure) | |
} |