diff --git a/Xcode/Examples/iPhoneXMPP/Classes/SettingsViewController.m b/Xcode/Examples/iPhoneXMPP/Classes/SettingsViewController.m index fc1fd4f801..9b8b9f2d91 100644 --- a/Xcode/Examples/iPhoneXMPP/Classes/SettingsViewController.m +++ b/Xcode/Examples/iPhoneXMPP/Classes/SettingsViewController.m @@ -20,8 +20,8 @@ @implementation SettingsViewController //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - (void)awakeFromNib { - [super awakeFromNib]; - self.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; + [super awakeFromNib]; + self.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/Xcode/Examples/iPhoneXMPP/Classes/iPhoneXMPPAppDelegate.m b/Xcode/Examples/iPhoneXMPP/Classes/iPhoneXMPPAppDelegate.m index aba94dd3e6..feb7ae6efb 100644 --- a/Xcode/Examples/iPhoneXMPP/Classes/iPhoneXMPPAppDelegate.m +++ b/Xcode/Examples/iPhoneXMPP/Classes/iPhoneXMPPAppDelegate.m @@ -62,10 +62,10 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( if (![self connect]) { - __weak iPhoneXMPPAppDelegate *weakSelf = self; + __weak iPhoneXMPPAppDelegate *weakSelf = self; dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 0.0 * NSEC_PER_SEC); dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ - [weakSelf.navigationController presentViewController:weakSelf.settingsViewController animated:YES completion:NULL]; + [weakSelf.navigationController presentViewController:weakSelf.settingsViewController animated:YES completion:NULL]; }); } @@ -209,7 +209,7 @@ - (void)setupStream // [xmppStream setHostName:@"talk.google.com"]; // [xmppStream setHostPort:5222]; -// bypassTLS = YES; +// bypassTLS = YES; // You may need to alter these settings depending on the server you're connecting to customCertEvaluation = YES; @@ -440,10 +440,10 @@ - (void)xmppStream:(XMPPStream *)sender didReceiveTrust:(SecTrustRef)trust // but will presumably perform some extra security code stuff. // For example, allowing a specific self-signed certificate that is known to the app. - if (bypassTLS) { - completionHandler(YES); - return; - } + if (bypassTLS) { + completionHandler(YES); + return; + } dispatch_queue_t bgQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dispatch_async(bgQueue, ^{