- 博客(6)
- 资源 (4)
- 收藏
- 关注
原创 iOS UIAlertController弹窗效果
在iOS8之前弹窗一共有两种方式分为UIAlertView和UIActionSheet,在iOS8之后新增UIAlertViewController来统一管理,下面就来一一作介绍 1.UIAlertView // message 可设置为nil,cancelButtonTitle也可设置为nil,otherButtonTitles可设置多个button UIAlertView*alert
2016-07-25 15:30:02 869
原创 UIWebView的简单使用
在项目中有时需要加载h5,这就用到了webview 1.利用webView可加载服务器h5和本地h5 2.设置代理并遵守协议 首先需要在plist里做一下设置 NSAppTransportSecurity NSAllowsArbitraryLoads 1.加载本地h5 UIWebView *webView = [[UIWebView alloc]initWi
2016-07-23 20:12:32 326
原创 UIButton的简单使用
//初始化 UIButton *myButton = [UIButton buttonWithType: UIButtonTypeCustom]; // button类型有以下6种, // UIButtonTypeCustom = 0, 自定义风格 // UIButtonTypeRoundedRect, 圆角矩形 // UIButtonTypeDetailDisclosure, 蓝色小
2016-07-21 15:31:01 321
原创 UILabel简单使用
UILabel *nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 40, 280, 80)];//初始化 nameLabel.backgroundColor = [UIColorgrayColor];//设置背景色 nameLabel.text = @"天上上的雪莲花";//文字 nameLabel.font = [UIFon
2016-07-21 10:33:19 245
原创 UITextField的简单使用
UITextField常用的属性 UITextField *nameText = [[UITextField alloc]initWithFrame:CGRectMake(40, 40, 240, 60)]; //初始化 nameText.textColor = [UIColor redColor]; //文字颜色 nameText.delegate = self;//代理方法设置 na
2016-07-21 10:15:01 352
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人