上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 27 下一页
摘要: int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... // 第一种赋值的方式 NSRange rg1={3,5};//结构体 // 第二种赋值的方式 ... 阅读全文
posted @ 2015-09-18 15:51 Nicat 阅读(156) 评论(0) 推荐(0) 编辑
摘要: #importintmain(intargc,constchar* argv[]) { @autoreleasepool{ NSRectr=NSMakeRect(10,5,100,200);//NSRect其实就是CGRect //这种方式比较常见 NSRectr2=CGRectMake(... 阅读全文
posted @ 2015-09-18 15:51 Nicat 阅读(172) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSSize s=NSMakeSize(10, 15);//NSSize其实就是CGSize /... 阅读全文
posted @ 2015-09-18 15:51 Nicat 阅读(787) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSPoint p=NSMakePoint(10, 15); //NSPoint其实就CGPoi... 阅读全文
posted @ 2015-09-18 15:49 Nicat 阅读(394) 评论(0) 推荐(0) 编辑
摘要: NSMutableArray *array1=[NSMutableArray arrayWithObjects:@"1",@"3",@"2", nil]; //NSLog(@"%@",array1); /*结果: ( 1, 3, 2 ) */ ... 阅读全文
posted @ 2015-09-18 15:48 Nicat 阅读(259) 评论(0) 推荐(0) 编辑
摘要: /*可变字符串,注意NSMutableString是NSString子类*///注意虽然initWithCapacity分配字符串大小,但是不是绝对的不可以超过此范围,声明此变量对 性能有好处NSMutableString *str1= [[NSMutableString alloc] initWi... 阅读全文
posted @ 2015-09-18 15:48 Nicat 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Person *person1=[[Person alloc]initWithName:@"Kenshin"]; Person *person2=[[Person alloc]initWithName:@"Kaoru"]; Person *person3=[[Person all... 阅读全文
posted @ 2015-09-18 15:47 Nicat 阅读(423) 评论(0) 推荐(0) 编辑
摘要: NSDictionary *dic1=[NSDictionary dictionaryWithObjectsAndKeys: @"1",@"a", @"2",@"b", @"3",@"c", @"2",@"d", nil]; NSLog(@"%zi",[dic... 阅读全文
posted @ 2015-09-18 15:46 Nicat 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: NSDictionary *dic1=[NSDictionary dictionaryWithObjectsAndKeys: @"1",@"a", @"2",@"b", @"3",@"c", @"2",@"d", nil]; //遍历1 //for (i... 阅读全文
posted @ 2015-09-18 15:45 Nicat 阅读(1079) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { NSDate *date1=[NSDate date];//获得当前日期 NSLog(@"%@",date1); //结果:2014-07-16 0... 阅读全文
posted @ 2015-09-18 15:44 Nicat 阅读(158) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 27 下一页