Created
December 2, 2012 00:29
-
-
Save mrsidique/4186106 to your computer and use it in GitHub Desktop.
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
if ([connectionState intValue] == Connected) { | |
actionSheet.destructiveButtonIndex = [actionSheet addButtonWithTitle:@"Disconnect"]; | |
} | |
else if ([connectionState intValue] == Disconnected || [connectionState intValue] == Disconnecting) { | |
[actionSheet addButtonWithTitle:@"Connect"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment