mapanguan

导航

05 2016 档案

iOS 通过苹果开放API检测更新
摘要:通过官网API 对比版本号获取版本更新 API地址:官网地址 https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/ 阅读全文

posted @ 2016-05-19 10:34 mapanguan 阅读(331) 评论(0) 推荐(0)

Runtime 动态加载方法
摘要:源自小马哥教学视频 阅读全文

posted @ 2016-05-16 15:11 mapanguan 阅读(280) 评论(0) 推荐(0)

Runtime 交换方法
摘要:源自小马哥教学视频 阅读全文

posted @ 2016-05-16 15:08 mapanguan 阅读(244) 评论(0) 推荐(0)

Runtime消息传送
摘要:源自小马哥教学视频 阅读全文

posted @ 2016-05-16 15:05 mapanguan 阅读(179) 评论(0) 推荐(0)

iOS9 新加关键字 nullable、nonnull、null_unspecified、null_resettable
摘要:#import "ViewController.h" @interface ViewController () @property(nonatomic,nullable)NSString*name;//可以为空 @property(nonatomic,nonnull)NSString*passwor 阅读全文

posted @ 2016-05-11 09:28 mapanguan 阅读(437) 评论(0) 推荐(0)

KVC/KVO简单实例代码
摘要:代码摘选自 http://www.cnblogs.com/kenshincui/p/3871178.html 阅读全文

posted @ 2016-05-10 13:49 mapanguan 阅读(172) 评论(0) 推荐(0)

Block传值
摘要:1、在需要回调的B界面:.h 2、在需要回调B界面: .m 3、接收返回值得A界面 阅读全文

posted @ 2016-05-09 09:12 mapanguan 阅读(182) 评论(0) 推荐(0)

iOS CoreAnimation
摘要:@property (weak, nonatomic) IBOutlet UIView *redView;@property (weak, nonatomic) IBOutlet UILabel *label; 代码收集来自: http://www.cnblogs.com/zzuliliu/p/54 阅读全文

posted @ 2016-05-07 23:28 mapanguan 阅读(193) 评论(0) 推荐(0)

导航VC的左右item代码
摘要:代码控制左右item: UIButton *btnCancel = [UIButton buttonWithType:UIButtonTypeCustom]; btnCancel.frame=CGRectMake(0, 0, 60, 30); btnCancel.titleLabel.font=[UIFont systemFontOfSize:13]; btnCanc... 阅读全文

posted @ 2016-05-04 16:21 mapanguan 阅读(290) 评论(0) 推荐(0)

网络监控
摘要:使用官网Reachability库经行网络实时监控 阅读全文

posted @ 2016-05-03 16:41 mapanguan 阅读(216) 评论(0) 推荐(0)

Block 传值
摘要:<!--StartFragment--> A 界面: - (IBAction)gotoVC:(id)sender { //必须在事件发生时调用Block,每次Block对应一次初始化 cvc = [[CViewController alloc]initWithNibName:@"CViewContr 阅读全文

posted @ 2016-05-03 16:38 mapanguan 阅读(168) 评论(0) 推荐(0)