Skip to content

Commit

Permalink
Merge pull request #2 from FutureWorkshops/bug/spacing
Browse files Browse the repository at this point in the history
Fix code identation
  • Loading branch information
fwigorcferreira authored Oct 4, 2018
2 parents 8be1fe3 + 240d696 commit 32640f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Xcode/Examples/iPhoneXMPP/Classes/SettingsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ @implementation SettingsViewController
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

- (void)awakeFromNib {
[super awakeFromNib];
self.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[super awakeFromNib];
self.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
14 changes: 7 additions & 7 deletions Xcode/Examples/iPhoneXMPP/Classes/iPhoneXMPPAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
});
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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, ^{
Expand Down

0 comments on commit 32640f2

Please sign in to comment.