Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. NSString *enteredText = [[NSString alloc] initWithString:enterTextField.text];
  2. BOOL switchSelected = switchControl.on;
  3.  
  4. NSDictionary *dictionaryToSend = [[NSDictionary alloc] initWithObjectsAndKeys:enteredText, @"text", [NSNumber numberWithBool:switchSelected], @"switch", nil];
  5.  
  6. // Send a UTF8 String or Data.
  7. - (void)send:(id)data;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement