摘要: NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; CFShow(infoDictionary);// app名称 NSString *app_Name = [infoDictionary objectForK 阅读全文
posted @ 2016-07-01 09:52 梦幻神话 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 1. 获取磁盘总空间大小 2. 获取磁盘可用空间大小 3. 获取指定路径下某个文件的大小 4. 获取文件夹下所有文件的大小 5. 获取字符串(或汉字)首字母 6. 将字符串数组按照元素首字母顺序进行排序分组 使用如下: 输出结果如下: 7. 获取当前时间 8. 计算上次日期距离现在多久, 如 xx 阅读全文
posted @ 2016-06-24 10:30 梦幻神话 阅读(156) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-05-25 16:55 梦幻神话 阅读(6) 评论(0) 推荐(0) 编辑
摘要: //调用系统api返回一个字典 NSDictionary *systemAttributes = [[NSFileManager defaultManager] fileSystemAttributesAtPath:NSHomeDirectory()]; //获取总容量 NSString *disk 阅读全文
posted @ 2016-02-25 11:31 梦幻神话 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 闲话少说,直接上代码!UIImageView *imageView=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, imageBgWH, imageBgWH)]; imageView.image=[UIImage imageNamed:@"te... 阅读全文
posted @ 2015-06-05 11:19 梦幻神话 阅读(757) 评论(0) 推荐(0) 编辑