上一页 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 阅读(162) 评论(0) 推荐(0)
摘要: #importintmain(intargc,constchar* argv[]) { @autoreleasepool{ NSRectr=NSMakeRect(10,5,100,200);//NSRect其实就是CGRect //这种方式比较常见 NSRectr2=CGRectMake(... 阅读全文
posted @ 2015-09-18 15:51 Nicat 阅读(177) 评论(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 阅读(792) 评论(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 阅读(400) 评论(0) 推荐(0)
摘要: NSMutableArray *array1=[NSMutableArray arrayWithObjects:@"1",@"3",@"2", nil]; //NSLog(@"%@",array1); /*结果: ( 1, 3, 2 ) */ ... 阅读全文
posted @ 2015-09-18 15:48 Nicat 阅读(263) 评论(0) 推荐(0)
摘要: /*可变字符串,注意NSMutableString是NSString子类*///注意虽然initWithCapacity分配字符串大小,但是不是绝对的不可以超过此范围,声明此变量对 性能有好处NSMutableString *str1= [[NSMutableString alloc] initWi... 阅读全文
posted @ 2015-09-18 15:48 Nicat 阅读(111) 评论(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 阅读(429) 评论(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 阅读(1025) 评论(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 阅读(1082) 评论(0) 推荐(0)
摘要: NSDictionary *dic1=[NSDictionary dictionaryWithObject:@"1" forKey:@"a"]; NSLog(@"%@",dic1); /*结果: { a = 1; } */ //常用的方式 NS... 阅读全文
posted @ 2015-09-18 15:44 Nicat 阅读(307) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 27 下一页