- 博客(12)
- 收藏
- 关注
原创 iOS 封装framework
1.先创建一个工程类型选择iOS framework2.将要封装的代码加进来后分别选择模拟器和真机情况下进行build。3.选中生成的framework,Show in finder,找到对应的路径4.将两个路径分别在命令行中进行验证lipo -info ./name.framework/name 输出(真机下输出armv7 arm64,模拟器下输出i386 x86_64)
2017-09-08 08:45:40
331
原创 iOS 添加监听
self.abserveStr =@"123"; [selfaddObserver:selfforKeyPath:@"abserveStr"options:NSKeyValueObservingOptionOldcontext:nil]; self.abserveStr =@"456"; self.abserveStr =@"789";
2017-09-05 10:06:30
735
原创 定位中获取地址位置的两种方式
1.根据CLPlacemark获取地址信息 CLGeocoder *geocoder = [[CLGeocoder alloc] init]; [geocoder reverseGeocodeLocation: userLocation.location completionHandler:^(NSArray*array, NSError *error) {
2017-08-22 09:54:38
1775
原创 iOS 网络实时监控
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [self AFNetworkStatus]; return YES;}- (void)AFNetworkStat
2017-08-18 09:17:42
357
原创 Swift学习第一天
//定义变量和常量的字符串并输出 var myvarString = "original value" myvarString = "my value" print(myvarString) let myletName = "abc" print(mylet
2016-01-29 13:59:00
217
转载 Have a first child
A man and his wife were making their first doctor visit, the wife being pregnant with their first child. After everything checked out, the doctor took a small stamp and stayed the wife's stomach with
2016-01-28 10:01:35
301
转载 你的计划为什么执行不下去
读完之后有很多正能量:http://www.cocoachina.com/programmer/20160105/14881.html
2016-01-13 16:33:05
277
转载 iOS及Mac开源项目和学习资料【超级全面】
最近看到这有一篇文章收集了很全的第三方库:http://www.52codes.net/article/465.html
2016-01-13 14:21:19
253
原创 IOS中.a库的封装和使用以及遇到i386的问题
将一个已存在的A项目导入的已存在的B项目中1.用Xcode创建一个Library的工程2.将A项目中用到的库添加到Target--Build Phases--Link Binary With Libraries下3.将A项目中的B项目要使用到.h和.m文件添加到新创建的Library的工程中(注意设置.m文件的-fno-objc-arc)4.设置Library的工程的Schem
2016-01-06 16:36:15
2391
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人