diff --git a/ios/iosremote/iosremote.xcodeproj/project.xcworkspace/xcuserdata/siqi.xcuserdatad/UserInterfaceState.xcuserstate b/ios/iosremote/iosremote.xcodeproj/project.xcworkspace/xcuserdata/siqi.xcuserdatad/UserInterfaceState.xcuserstate index a7650de0a28e..78e830a65245 100644 Binary files a/ios/iosremote/iosremote.xcodeproj/project.xcworkspace/xcuserdata/siqi.xcuserdatad/UserInterfaceState.xcuserstate and b/ios/iosremote/iosremote.xcodeproj/project.xcworkspace/xcuserdata/siqi.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/ios/iosremote/iosremote/Communication/CommunicationManager.m b/ios/iosremote/iosremote/Communication/CommunicationManager.m index 1ac878dfb4a1..52a826616955 100644 --- a/ios/iosremote/iosremote/Communication/CommunicationManager.m +++ b/ios/iosremote/iosremote/Communication/CommunicationManager.m @@ -49,15 +49,14 @@ - (void) connectionStatusHandler:(NSNotification *)note { - if ([self.delegate respondsToSelector:@selector(disableSpinner)]) - [self.delegate disableSpinner]; if([[note name] isEqualToString:@"connection.status.connected"]){ if (self.state!=CONNECTED){ - NSLog(@"Connected"); + NSLog(@"Connected, waiting for pairing response"); self.transmitter = [[CommandTransmitter alloc] initWithClient:self.client]; - self.state = CONNECTED; } } else if ([[note name] isEqualToString:@"connection.status.disconnected"]){ + if ([self.delegate respondsToSelector:@selector(disableSpinner)]) + [self.delegate disableSpinner]; if (self.state != DISCONNECTED) { NSLog(@"Connection Failed"); self.state = DISCONNECTED; @@ -118,8 +117,8 @@ if (self.state == CONNECTING) { return; } else { - self.state = CONNECTING; [self.client disconnect]; + self.state = CONNECTING; // initialise it with a given server self.client = [[Client alloc]initWithServer:server managedBy:self interpretedBy:self.interpreter]; self.transmitter = [[CommandTransmitter alloc] initWithClient:self.client]; diff --git a/ios/iosremote/iosremote/en.lproj/iPhone_autolayout.storyboard b/ios/iosremote/iosremote/en.lproj/iPhone_autolayout.storyboard index 5fbdb2392689..c900f65aeeec 100644 --- a/ios/iosremote/iosremote/en.lproj/iPhone_autolayout.storyboard +++ b/ios/iosremote/iosremote/en.lproj/iPhone_autolayout.storyboard @@ -460,31 +460,18 @@ - + +