Skip to content

Instantly share code, notes, and snippets.

@mrsidique
Created December 2, 2012 00:29
Show Gist options
  • Save mrsidique/4186106 to your computer and use it in GitHub Desktop.
Save mrsidique/4186106 to your computer and use it in GitHub Desktop.
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