摘要: 如果我们想让某个方法重复的执行,可以用ios提供的定时器NSTimer来完成,其实使用起来非常简单,分为三个步骤:一、调用NSTimerscheduledTimerWithTimeInterval::target::selector::userInfo::repeats或者scheduledTime... 阅读全文
posted @ 2015-04-01 20:34 欣哥传奇 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 第一种:改写ruturn方法,点击键盘的return键实现关闭键盘(注意field1的代理是自己以及前面一定要有代理)这种方法是最简单的也是最常用的方法!未完,其他方法随后奉上.... 版权声明:本文为博主原创文章,未经博主允许不得转载... 阅读全文
posted @ 2015-04-01 19:33 欣哥传奇 阅读(155) 评论(0) 推荐(0) 编辑
摘要: //设置自定义的按钮 //UIButton *button1=[UIButton buttonWithType:UIButtonTypeCustom]; //设置一个圆角的按钮 UIButton *button1=[UIButton buttonWithType:UIButtonTypeRou... 阅读全文
posted @ 2015-04-01 16:39 欣哥传奇 阅读(125) 评论(0) 推荐(0) 编辑