摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { // 2.@"6",@"34",@"56","78"存入数组,并进行排序降序输出结果 NSArray *arr=@[@"6",@"34",@"56",... 阅读全文
posted @ 2016-01-08 14:22 流浪法师0 阅读(93) 评论(0) 推荐(0) 编辑
摘要: //// main.m// 练习排序1//// Created by syrcfwzx on 16/1/7.// Copyright (c) 2016年 syrcfwzx. All rights reserved.//#define NSLog(FORMAT, ...) printf("%s\n",... 阅读全文
posted @ 2016-01-08 14:12 流浪法师0 阅读(135) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... NSDictionary *dic1=@{@"name":@"bb",@"class":@"IOS8"... 阅读全文
posted @ 2016-01-08 14:09 流浪法师0 阅读(182) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { NSDictionary *dic1=@{@"name":@"小阳", @"class":@"IOS8", ... 阅读全文
posted @ 2016-01-08 14:07 流浪法师0 阅读(104) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { //创建一个字符串常量 NSString *str=@"字符串"; // 创建一个空的字符串对象 //实例方法 NSString ... 阅读全文
posted @ 2016-01-08 14:04 流浪法师0 阅读(137) 评论(0) 推荐(0) 编辑
摘要: //#define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String])#import int main(int argc, const char * arg... 阅读全文
posted @ 2016-01-08 14:03 流浪法师0 阅读(72) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { //可变数组继承不可变数组 //1.创建 NSMutableArray *mutArr=[NSMutableArray arrayWithCa... 阅读全文
posted @ 2016-01-08 14:03 流浪法师0 阅读(154) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { NSDictionary *dic=@{@"1-1":@"02", @"5-1":@"12", ... 阅读全文
posted @ 2016-01-08 14:02 流浪法师0 阅读(96) 评论(0) 推荐(0) 编辑
摘要: #define NSLog(FORMAT, ...) printf("%s\n", [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]) 阅读全文
posted @ 2016-01-08 14:01 流浪法师0 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #import int main(int argc, const char * argv[]) { @autoreleasepool { /*字典:不可变字典nsdictionary 1.存书数据使用 和数组区别 使用键值方式 。 无序 2.相当于我们使用字典通过目录来查找具体字... 阅读全文
posted @ 2016-01-08 14:00 流浪法师0 阅读(131) 评论(0) 推荐(0) 编辑