会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
杨顺的博客
新随笔
管理
2015年12月19日
applicationIconBadgeNumber和localNotification申请通知弹出
摘要: 在application代理中添加如下加粗方法- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { if ([UIApplicati...
阅读全文
posted @ 2015-12-19 23:22 杨顺的博客
阅读(241)
评论(0)
推荐(0)
2015年12月18日
工具类的封装方法1
摘要: 1 // 2 // YSvoiceTool.h 3 // audio 4 // 5 // Created by ys on 15/12/18. 6 // Copyright (c) 2015年 ys. All rights reserved. 7 // 8 9 #import 10 11...
阅读全文
posted @ 2015-12-18 23:11 杨顺的博客
阅读(429)
评论(0)
推荐(0)
MJRefresh更新,方法更简单好用。和旧版相比部分属性或者方法需要添加前缀mj_
摘要: 1 // 2 // ViewController.m 3 // mjRefresh 4 // 5 // Copyright (c) 2015年 ys. All rights reserved. 6 // 7 8 #import "ViewController.h" 9 #import "M...
阅读全文
posted @ 2015-12-18 19:28 杨顺的博客
阅读(398)
评论(0)
推荐(0)
2015年12月13日
IPad专有API UISplitViewController开发菜单浏览demo
摘要: 项目地址:https://github.com/samyanghehe/sqlLiteDemo/tree/master/YSUiSplitViewController
阅读全文
posted @ 2015-12-13 18:20 杨顺的博客
阅读(408)
评论(0)
推荐(0)
2015年12月12日
字典转模型的三种方法之四:总结
摘要: 模型 1 // 2 // YSFoodTypeModule.h 3 // YSUiSplitViewController 4 // 5 // Created by ys on 15/12/12. 6 // Copyright (c) 2015年 ys. All rights reserved...
阅读全文
posted @ 2015-12-12 20:27 杨顺的博客
阅读(249)
评论(0)
推荐(0)
2015年12月4日
字典转模型的三种方法之三:MJExtension全自动字典模型互转
摘要: 1 #import "YSHomeViewController.h" 2 #import "UIImage+YS.h" 3 #import "UIBarButtonItem+YS.h" 4 #import "YStitleButton.h" 5 #import "AFNetworking.h" 6...
阅读全文
posted @ 2015-12-04 12:30 杨顺的博客
阅读(1366)
评论(0)
推荐(0)
字典转模型的三种方法之二:KVC
摘要: 1 -(NSArray *)tgs 2 { 3 NSString *path = [[NSBundle mainBundle]pathForResource:@"tgs" ofType:@"plist"]; 4 NSMutableArray *tgsArray = [NSMutab...
阅读全文
posted @ 2015-12-04 12:25 杨顺的博客
阅读(243)
评论(0)
推荐(0)
字典转模型的三种方法之一:赋值法
摘要: 1 #import "YSHomeViewController.h" 2 #import "UIImage+YS.h" 3 #import "UIBarButtonItem+YS.h" 4 #import "YStitleButton.h" 5 #import "AFNetworking.h" 6...
阅读全文
posted @ 2015-12-04 12:18 杨顺的博客
阅读(491)
评论(0)
推荐(0)
2015年11月23日
GCD应用
摘要: 1 // 2 // ViewController.m 3 // GCDdemo 4 // 5 // Created by ys on 15/11/23. 6 // Copyright (c) 2015年 ys. All rights reserved. 7 // 8 9 #import ...
阅读全文
posted @ 2015-11-23 12:44 杨顺的博客
阅读(357)
评论(0)
推荐(0)
NSThread多线程
摘要: 1 // 2 // ViewController.m 3 // nsthreaddemo 4 // 5 // Created by ys on 15/11/23. 6 // Copyright (c) 2015年 ys. All rights reserved. 7 // ...
阅读全文
posted @ 2015-11-23 12:28 杨顺的博客
阅读(238)
评论(0)
推荐(0)
手写单例singleton
摘要: 1 // 2 // ViewController.m 3 // singleton 4 // 5 // Created by ys on 15/11/23. 6 // Copyright (c) 2015年 ys. All rights reserved. 7 // 8 9 10 #im...
阅读全文
posted @ 2015-11-23 11:35 杨顺的博客
阅读(684)
评论(0)
推荐(0)
2015年11月22日
NSOperation多线程
摘要: 1 // 2 // ViewController.m 3 // NSOperation 4 // 5 // Created by ys on 15/11/22. 6 // Copyright (c) 2015年 ys. All rights reserved. 7 // 8...
阅读全文
posted @ 2015-11-22 21:23 杨顺的博客
阅读(220)
评论(0)
推荐(0)
GCD多线程
摘要: 1 // 2 // ViewController.m 3 // NSThread 4 // 5 // Created by ys on 15/11/22. 6 // Copyright (c) 2015年 ys. All rights reserved. 7 // 8 9 #import...
阅读全文
posted @ 2015-11-22 19:24 杨顺的博客
阅读(248)
评论(0)
推荐(0)
coreAnimation与viewAnimation
摘要: 1 // 2 // ViewController.m 3 // CAAnimationAndViewAnimation 4 // 5 // Created by ys on 15/11/22. 6 // Copyright (c) 2015年 ys. All rights reserved...
阅读全文
posted @ 2015-11-22 16:28 杨顺的博客
阅读(245)
评论(0)
推荐(0)
coreAnimation核心动画(四)CAAnimationGroup
摘要: 1 // 2 // ViewController.m 3 // CAAnimationGroup 4 // 5 // Created by ys on 15/11/22. 6 // Copyright (c) 2015年 ys. All rights reserved. 7 // 8 9...
阅读全文
posted @ 2015-11-22 15:15 杨顺的博客
阅读(196)
评论(0)
推荐(0)
coreAnimation核心动画(三)CATansition
摘要: 1 // 2 // ViewController.m 3 // CATransition 4 // 5 // Created by ys on 15/11/22. 6 // Copyright (c) 2015年 ys. All rights reserved. 7 // 8 9 #im...
阅读全文
posted @ 2015-11-22 14:55 杨顺的博客
阅读(227)
评论(0)
推荐(0)
2015年11月21日
coreAnimation核心动画(二)CAKeyframeAnimation
摘要: 1 // 2 // ViewController.m 3 // coreAnimation 4 // 5 // Created by ys on 15/11/21. 6 // Copyright (c) 2015年 ys. All rights reserved. 7 // 8 9 #i...
阅读全文
posted @ 2015-11-21 23:23 杨顺的博客
阅读(307)
评论(0)
推荐(0)
coreAnimation核心动画(一)CABasicAnimation
摘要: 2 1 // 2 // ViewController.m 3 // coreAnimation 4 // 5 // Created by ys on 15/11/21. 6 // Copyright (c) 2015年 ys. All rights reserved. 7 //...
阅读全文
posted @ 2015-11-21 23:02 杨顺的博客
阅读(214)
评论(0)
推荐(0)
自定义Layer的两种方法
摘要: view的完整显示过程: 1.view.layer会准备一个Layer Graphics Context(图层类型上下文) 2.调用view.layer.delegate(即view)的drawLayer:inContext:并传入准备好的上下文 3.view的drawLayer:inCont...
阅读全文
posted @ 2015-11-21 22:18 杨顺的博客
阅读(1177)
评论(0)
推荐(0)