Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 17th, 2012  |  syntax: None  |  size: 0.22 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Send and receive String with game center
  2. NSString *yourString;
  3. NSData *stringData = [yourString dataUsingEncoding:NSUTF8StringEncoding];
  4.        
  5. recievedString = [[NSString stringWithUTF8String:[recievedData bytes]] retain];