摘要: 利用OC Runtime 在.h中 @interface NSObject (LaserUnicorn) @property (nonatomic, strong) LaserUnicorn *laserUnicorn; @end 在.m中 #import <objc/runtime.h> stat 阅读全文
posted @ 2016-01-29 17:47 凸^_^凸 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 本文引用自Code4App:http://code4app.com/article/cocoapods-install-usage如何下载和安装CocoaPods?在安装CocoaPods之前,首先要在本地安装好Ruby环境。至于如何在Mac中安装好Ruby环境,请google一下,本文不再涉及。假... 阅读全文
posted @ 2016-01-13 14:48 凸^_^凸 阅读(166) 评论(0) 推荐(0) 编辑
摘要: github 下载地址https://github.com/stefanhafeneger/PushMeBaby1.运行如果报错,那么导入CoreServices.framawork替换这句 #include 为 #include 2.把你的开发证书.cer 文件更改名为apns.cer,放入工程... 阅读全文
posted @ 2015-12-04 08:57 凸^_^凸 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 今天写完底层SDK的static lib,引入另一个工程发现报了如下帖子的错误,查了很久,这个方法是对的。static lib 不支持xcode7的 tbd格式的库文件,但直接引入dylib又找不到,如下方案可以解决。Xcode7也是可以添加动态库向下兼容的,想要添加动态库你需要这么做:1.打开你添... 阅读全文
posted @ 2015-11-10 15:33 凸^_^凸 阅读(3065) 评论(0) 推荐(0) 编辑