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
int toIndex=0; | |
[self.tableView beginUpdates]; | |
for (NSDictionary* reddit in sortedReddits) { | |
NSString *displayName = [reddit valueForKeyPath:@"data.display_name"]; | |
NSUInteger fromIndex = | |
[_reddits indexOfObjectPassingTest:^BOOL(NSDictionary *obj, NSUInteger idx, BOOL *stop) { | |
if ([[obj valueForKeyPath:@"data.display_name"] isEqualToString:displayName] ) { | |
*stop = YES; | |
return YES; | |
} |
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) presentShareController:(SLComposeViewController*)shareCompose | |
{ | |
if ([shareCompose.serviceType isEqualToString:SLServiceTypeFacebook]) { | |
UIWindow *window = [[UIApplication sharedApplication] keyWindow]; | |
UIWindowLevel prevWindowLevel = window.windowLevel; | |
window.windowLevel = UIWindowLevelNormal; | |
SLComposeViewControllerCompletionHandler handler = shareCompose.completionHandler; | |
shareCompose.completionHandler = ^(SLComposeViewControllerResult result){ |
NewerOlder