判断设备是ipad还是iphone

可用于判断应用运行的设备是否是 iPad

#define isPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)

将string字符串转换为array数组

NSArray  *array = [Str componentsSeparatedByString:@","];

==反向方法

将array数组转换为string字符串

NSString *tempString = [mutableArray componentsJoinedByString:@","];--分隔符

stringByReplacingOccurrencesOfString:@" " withString:@""

你可能感兴趣的:(判断设备是ipad还是iphone)