views:

10338

answers:

1
+8  Q: 

NSString to Nsdata

How to convert NSString value to NSData..

thanks and regards

+47  A: 
NSString* str= @"teststring";
NSData* data=[str dataUsingEncoding:NSUTF8StringEncoding];
flitzwald