可能重复:
iphone如何检查字符串是否只是数字
我有一个NSString,然后我想检查字符串是否是数字.
我的意思是
NSString *val = @"5555" ;
if(val isNumber ){
return true;
}else{
retun false;
}
Run Code Online (Sandbox Code Playgroud)
我怎样才能在Objective C中做到这一点?
我们可以使用GKSession和GKPeerPickerController通过蓝牙仅连接iPodtouch或iPhone吗?,或者我们可以连接其他蓝牙设备吗?
这两者有什么区别?
@property (nonatomic, retain)
@property (nonatomic, copy)
Run Code Online (Sandbox Code Playgroud)
这样的其他类型是什么?