摘要: UIAlertController是iOS8推出的新概念,取代了之前的 UIAlertView和UIActionSheet(虽然现在仍可以使用,但是会有警告)。所以还是建议大家以后还是使用UIAlertController吧(本人看见警告就有种冲动😂),下面有些代码有点重复,但是能过为了更清楚的看 阅读全文
posted @ 2017-08-22 15:39 屋巢 阅读(229) 评论(0) 推荐(0) 编辑
摘要: // // ViewController.m // TextViewAll #import "ViewController.h" @interface ViewController ()<UITextViewDelegate> @end @implementation ViewController 阅读全文
posted @ 2017-08-22 11:28 屋巢 阅读(842) 评论(0) 推荐(0) 编辑
摘要: // // ViewController.m // ScrollviewAll #import "ViewController.h" @interface ViewController ()<UIScrollViewDelegate> @end @implementation ViewControl 阅读全文
posted @ 2017-08-21 14:45 屋巢 阅读(2826) 评论(0) 推荐(0) 编辑
摘要: // // ViewController.m // TextFieldAll // #import "ViewController.h" @interface ViewController ()<UITextFieldDelegate> @end @implementation ViewContro 阅读全文
posted @ 2017-08-21 10:44 屋巢 阅读(2723) 评论(0) 推荐(0) 编辑
摘要: // // ViewController.m // LabelAll // #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad 阅读全文
posted @ 2017-08-18 14:46 屋巢 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 在IOS开发的过程中,UILabel是很常用的一个控件,同时也是大量使用的一个控件。创建一个UILabel一般需要五六句代码,如果我们需要创建几十个UILabel,就意味着我们要写五六十句代码,其实很多代码是重复的,我们可以把类似的代码写到一个公共的方法中,以提高工作效率和降低代码重复。官方提供UI 阅读全文
posted @ 2017-08-18 14:45 屋巢 阅读(169) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-08-17 18:20 屋巢 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 有些属性和方法始终是记不清,只能记下来,方便查找 如果对你有帮助请支持,没有帮助请告诉我哪里需要改进!谢谢! // ViewController.m // TableViewAll #import "ViewController.h" @interface ViewController ()<UIT 阅读全文
posted @ 2017-08-17 18:13 屋巢 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 对UIbutton的简单使用(基本上足够了),话不多说,直接看 UIButton *myButton = [UIButton buttonWithType:UIButtonTypeCustom]; /* UIButtonTypeCustom = 0, //自定义风格 UIButtonTypeSyst 阅读全文
posted @ 2017-08-17 14:57 屋巢 阅读(247) 评论(0) 推荐(0) 编辑