钟表,可以回到起点,却已不是错天

01 2015 档案

摘要://创建进度指示器 UIProgressView *progressView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleDefault]; progressView.frame = CGRectMak... 阅读全文
posted @ 2015-01-20 19:57 独一无二 阅读(315) 评论(0) 推荐(0)
摘要://创建图片视图时就设定Frame的属性和大小 UIImageView *img = [[UIImageView alloc] initWithFrame:CGRectMake(60, 20, 80, 100)]; [img setImage:[UIImage imageNamed:@"mtxx... 阅读全文
posted @ 2015-01-19 20:54 独一无二 阅读(358) 评论(0) 推荐(0)
摘要://创建分段按钮 UISegmentedControl *segment = [[UISegmentedControl alloc] initWithFrame:CGRectMake(100, 200, 100, 50)]; //设置Item的宽度 UIColor *MyTint = [[UI... 阅读全文
posted @ 2015-01-16 19:50 独一无二 阅读(277) 评论(0) 推荐(0)
摘要:基本控件-UISlider(滑块) //创建一个滑块视图,确定其位置和大小(高度可以忽略) UISlider *slider = [[UISlider alloc] initWithFrame:CGRectMake(50, 100, 200, 0.0)]; //设置滑块的范围与默认值 slider.... 阅读全文
posted @ 2015-01-16 18:53 独一无二 阅读(351) 评论(0) 推荐(0)
摘要:基本控件----UITextFiled文本框//UITextField *textname = [[UITextField alloc]initWithFrame:CGRectMake(self.view.frame.size.width/5, 60.0, 40.0, 20.0)];//设置边框类型... 阅读全文
posted @ 2015-01-14 20:48 独一无二 阅读(496) 评论(0) 推荐(0)
摘要:UIKit—Button//创建矩形圆角边框的按钮,上面可以放置图片,也能放置文字 UIButton *button1 =[UIButton buttonWithType:UIButtonTypeRoundedRect]; button1.frame = CGRectMake(100.0, 200... 阅读全文
posted @ 2015-01-13 22:17 独一无二 阅读(182) 评论(0) 推荐(0)
摘要:基本控件—UIKit之UILable1..ios的所有应用程序都基于UIKit2.UIWindow 定义一个程序显示窗口的对象3.alloc 分配内存 init 初始化//声明UIlabel并且指定它的位置和宽度UILabel *labelName = [UILabelalloc]initCGRec... 阅读全文
posted @ 2015-01-13 20:29 独一无二 阅读(292) 评论(0) 推荐(0)

世界上没有绝望得处境,只有对处境绝望得人