05 2015 档案

摘要:XCODE UITextField 中的属性和用法 一些基本的用法UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; CGRect frame =CGRectMake(110, 100, 100, 30); ... 阅读全文
posted @ 2015-05-28 19:26 meixianLYD 阅读(523) 评论(0) 推荐(0) 编辑
摘要://第一种创建UIButton的方法 //initWhitFrame: UIButton *button = [[UIButton alloc]initWithFrame:CGRectMake(110, 100, 100, 30)]; button.backgroundColor = [UIC... 阅读全文
posted @ 2015-05-27 20:39 meixianLYD 阅读(2270) 评论(0) 推荐(0) 编辑
摘要:Label 中常用的方法属性UILabel *label =[[UILabel alloc]initWithFrame:CGRectMake(90, 100, 140, 40)];//设置Label的大小 //label.text =@"loveLYD meixian";//1.设置Label的文... 阅读全文
posted @ 2015-05-26 19:07 meixianLYD 阅读(798) 评论(1) 推荐(0) 编辑
摘要:UILabel中一个水平移动的LabelUILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, 300, 300)]; UILabel *label7 = [[UILabel alloc]initWithFrame:CGR... 阅读全文
posted @ 2015-05-26 18:59 meixianLYD 阅读(243) 评论(0) 推荐(0) 编辑
摘要:很多时候对于不同的版本,随设备的旋转以后,相应的Button的大小如果不做相应的改变,这很影响视图的美观和布局;下面是小编的个人看法UIButton *button = [[UIBtton alloc]init];button.frame =CGRectMake(320/2-100/2,60,100... 阅读全文
posted @ 2015-05-10 21:53 meixianLYD 阅读(452) 评论(0) 推荐(0) 编辑
摘要:随着版本的更新,模态视图对版本也有不同的要求,那如何让模态视图适应多版本的要求呢?下面是小编的个人看法!-(void)presentModalVC{modalViewController *modalVC= [[modalViewController alloc]init];modalVC.moda... 阅读全文
posted @ 2015-05-10 11:32 meixianLYD 阅读(144) 评论(0) 推荐(0) 编辑
摘要:对于版本号不同的设备,旋转时视图的要做出相应的旋转,那么版本不同,代码的实现是如何的,如何对旋转方向做出限制?下面是小编的个人看法!//版本号为3.5 -5.0-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)... 阅读全文
posted @ 2015-05-10 11:21 meixianLYD 阅读(391) 评论(0) 推荐(0) 编辑
摘要:Xcode UI UIViewController 生明周期 阅读全文
posted @ 2015-05-07 21:56 meixianLYD 阅读(95) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示