- (void)toMeAgain {
UIViewController *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"myIdentifier"];
[self.navigationController pushViewController:vc animated:YES];
}
NSArray *keys = [dict allKeys];
NSArray *sortedKeys = [keys sortedArrayUsingComparator:^NSComparisonResult(id obj1, id obj2) {
return [(NSString*)obj1 compare:(NSString*)obj2];
}];
for (NSString *key in sortedKeys) {
// your actions
}
__block int i = 10;
void (^block) (int) = ^(int x){
NSLog(@"%d", i); // 11
};
i++;
block (i);