摘要: //定义四个整数类型inta=789;intb=456;intc=123;intd=753;//进行封装NSNumber*intNumberA=[NSNumbernumberWithInt:a];NSNumber*intNumberB=[NSNumbernumberWithInt:b];NSNumb... 阅读全文
posted @ 2016-01-06 22:23 专注博客园三十年 阅读(243) 评论(0) 推荐(0)
摘要: #import 2 3 int main(int argc, const char * argv[]) { 4 @autoreleasepool { 5 //判断字符串前缀 6 NSString *str1=@"iOS-study"; 7 ... 阅读全文
posted @ 2016-01-06 20:46 专注博客园三十年 阅读(1029) 评论(0) 推荐(0)
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { //创建字符串常量 NSString *str1=@"char1"; //实例方法创建 NSStri... 阅读全文
posted @ 2016-01-06 20:24 专注博客园三十年 阅读(305) 评论(0) 推荐(0)