摘要: 1. Unknown type name 'class'; did you mean 'Class' 问题解决方法 objectice-c 工程中的类(比如 类 A)使用 C++ 文件时 A.m 文件需要更改为 A.mm , 而且包含 A.h 的其他类(比如 类 B )的B.m 文件也需要更改为 B 阅读全文
posted @ 2016-01-11 11:09 慢慢儿 阅读(818) 评论(0) 推荐(0)
摘要: 转载自:http://www.jianshu.com/p/e38a609f786e 阅读全文
posted @ 2016-01-08 14:08 慢慢儿 阅读(407) 评论(0) 推荐(0)
摘要: NSUserDefault 支持的存储类型有:NSString、 NSNumber、NSDate、 NSArray、NSDictionary、BOOL、NSInteger、NSFloat等系统定义的数据类型。 自己创建的类 是不识别的 。 阅读全文
posted @ 2015-12-25 13:57 慢慢儿 阅读(2731) 评论(0) 推荐(0)
摘要: - (NSString *)fetchSSIDInfo{ NSString *ssid = nil; NSArray *ifs = (__bridge_transfer id)CNCopySupportedInterfaces(); for (NSString *ifnam in ifs) { ... 阅读全文
posted @ 2015-12-24 10:18 慢慢儿 阅读(562) 评论(2) 推荐(0)
摘要: 使用fmdb 做本地数据的存储非常方便,1. github 上搜索fmdb 下载压缩包 导入到工程中 (如果你的mac 有cocoapod 也可以直接通过cocoapod 添加)2. 以下代码是通过fmdb 多数据库的各种操作,其中有几点需要注意:(1). 程序中 Ceasar 是表名 (2). ... 阅读全文
posted @ 2015-12-18 15:13 慢慢儿 阅读(242) 评论(0) 推荐(0)
摘要: 没有废话直接上步骤 (哪一步卡住了 多试几次 可能是网络不好的缘故) 1. 首先安装 home-brew 以下方法转自:http://www.cnblogs.com/lzrabbit/p/4032515.html Homebrew官网 http://brew.sh/index_zh-cn.html 阅读全文
posted @ 2015-12-18 14:36 慢慢儿 阅读(467) 评论(4) 推荐(0)