跟通知一样也是两个控制器,然后代码创建控件直接上代码 #import "ViewController.h" #import "TwoViewController.h" @interface ViewController () { UIButton *_nextBtn; UILabel *_showL ...
分类:
移动开发 时间:
2016-08-23 23:28:54
阅读次数:
229
/* Accessing the Text Attributes text property font property textColor property textAlignment property lineBreakMode property enabled property Sizing ...
分类:
其他好文 时间:
2016-08-23 14:34:31
阅读次数:
234
直接创建两个控制器,点击跳转第二个界面,然后点击按钮进行传值 #import "ViewController.h" #import "TWOOViewController.h" @interface ViewController () @property(nonatomic,weak)UILabel ...
分类:
移动开发 时间:
2016-08-23 01:10:38
阅读次数:
217
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 100, 300, 50)]; label.text = @"今天下午全市多云到阴有阵雨或雷雨,今天夜里到明天阴有阵雨,雨量可达大雨。 东北风5-6级阵风7级,逐渐增强到6- ...
分类:
其他好文 时间:
2016-08-22 23:03:09
阅读次数:
129
Swift - 通过叠加UILabel来实现混合的进度条 效果 源码 https://github.com/YouXianMing/Swift-Animations ...
分类:
编程语言 时间:
2016-08-21 21:09:40
阅读次数:
156
@property (weak, nonatomic) IBOutlet UILabel *contentLabel; @end @implementation WJAboutMFViewController - (void)viewDidLoad { [super viewDidLoad]; // ...
分类:
移动开发 时间:
2016-08-18 10:05:17
阅读次数:
614
问题描述 在iOS8以下版本,numberOfLines设置为0,编译警告Automatic Preferred Max Layout Width before iOS8.0,同时不能换行。 问题分析 iOS8以下版本,要 UILabel 行数大于0,单numberOfLines设置为0是不行的,还 ...
分类:
移动开发 时间:
2016-08-18 00:39:04
阅读次数:
189
1:UIlabel————标签,显示文字,例如账号注册前面的姓名,邮箱等都是用label显示; 2:UIbutton————按钮,可在按钮上面加wenzi或图片,点击后会触发相应的某个事件,例如注册,登录多用了button按钮; 3:UIimageview————图片控件,用来展现图片的 ; 4:U ...
分类:
其他好文 时间:
2016-08-14 20:43:16
阅读次数:
157
label 不同颜色 UILabel* noteLabel = [[UILabel alloc] init]; noteLabel.frame = CGRectMake(60, 100, 200, 100); noteLabel.textColor = [UIColor blackColor]; n ...
分类:
其他好文 时间:
2016-08-12 11:29:18
阅读次数:
106
代码创建按钮UIButton: (一)基本设置 //创建中间“+”按钮 UIButton *addBtn = [[UIButton alloc] init]; //设置默认背景图片 [addBtn setBackgroundImage:[UIImage imageNamed:@"AddButtonI ...
分类:
移动开发 时间:
2016-08-11 00:45:39
阅读次数:
259