方法一:
char *a;
static char z;
a = &z;
gets(a);
NSString *intput = [NSString stringWithUTF8String:a];
方法二:
char l[20];
scanf("%s",l);
NSString *intput=@(l);
OC之从键盘输入NSString字符串
原文:http://www.cnblogs.com/liuguan/p/4917931.html