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

浙公网安备 33010602011771号