摘要: UIScrollView本身事是不支持touch的,我们可以给她添加拓展#import "UIScrollView+util.h"@implementation UIScrollView (util)-(void)touchesBegan:(NSSet *)touches withEvent:(UI... 阅读全文
posted @ 2016-01-07 09:13 V清风 阅读(494) 评论(0) 推荐(0) 编辑
摘要: 首先在控制台cd到你的本地项目,这里以teat为例1.执行命令: git init2.将项目文件添加到仓库中: git add . (可以是指定文件,将“.”转换为指定文件)3.接下来commit添加的文件: git commit -m '将teat的所有文件commit到仓库'4.在你的GitHu... 阅读全文
posted @ 2015-12-31 15:05 V清风 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 拿添加libsqlite3.dylib为例1.打开你添加的libsqlite3.tbd 文本文件,然后有一行 install-name:/usr/lib/libsqlite3.dylib 。command+c复制下来,一会儿需要2.在添加动态库的窗口的左下角有个Add Other...,点击选择进入... 阅读全文
posted @ 2015-12-31 11:30 V清风 阅读(1319) 评论(0) 推荐(0) 编辑
摘要: https://github.com/White007/ADScrollView 阅读全文
posted @ 2015-12-30 11:41 V清风 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 在用XIB里自定制view,button,label...的一些属性时,例如边框宽度,边框颜色等,如下图:在User Defined Runtime Attributes里添加你需要改变的属性名,属性类型即可。在设置颜色时要注意,因为bordercolor是CGColorRef类型的,所以你要拓展C... 阅读全文
posted @ 2015-12-30 11:35 V清风 阅读(243) 评论(0) 推荐(0) 编辑
摘要: http://my.oschina.net/u/1245365/blog/294449 阅读全文
posted @ 2015-12-30 11:31 V清风 阅读(95) 评论(0) 推荐(0) 编辑
摘要: //UIView 转换为图片UIGraphicsBeginImageContext(self.rootsView.bounds.size);[_rootsView.layer renderInContext:UIGraphicsGetCurrentContext()];UIImage *viewBe... 阅读全文
posted @ 2015-12-30 11:30 V清风 阅读(260) 评论(0) 推荐(0) 编辑
摘要: http://my.oschina.net/joanfen/blog/194491?fromerr=LM5QY3YF 阅读全文
posted @ 2015-12-30 11:23 V清风 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 注册键盘弹起与收起通知[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:ni... 阅读全文
posted @ 2015-12-30 11:22 V清风 阅读(169) 评论(0) 推荐(0) 编辑
摘要: //一个section刷新 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2]; [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAut... 阅读全文
posted @ 2015-12-30 10:14 V清风 阅读(400) 评论(0) 推荐(0) 编辑