Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *enteredText = [[NSString alloc] initWithString:enterTextField.text];
- BOOL switchSelected = switchControl.on;
- NSDictionary *dictionaryToSend = [[NSDictionary alloc] initWithObjectsAndKeys:enteredText, @"text", [NSNumber numberWithBool:switchSelected], @"switch", nil];
- // Send a UTF8 String or Data.
- - (void)send:(id)data;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement