UIImageView属性1.Image 设置图片,默认显示UIImageView *_imageView = [[UIImageView alloc]init];_imageView.image = [UIImage imageNamed:@"me.png"];2.highlightedImage...
分类:
移动开发 时间:
2015-08-01 18:49:35
阅读次数:
196
UITextFidle相关属性? enablesReturnKeyAutomatically默认为No,如果设置为Yes,文本框中没有输入任何字符的话,右下角的返回按钮是disabled的。1.borderStyle设置边框样式,只有设置了才会显示边框样式 text.borderStyle = U....
分类:
移动开发 时间:
2015-08-01 18:48:38
阅读次数:
133
UITableViewUITableView内置了两种样式:UITableViewStylePlain,UITableViewStyleGrouped里的方法:tableView处理步骤#pragma mark 1.有多少组- (NSInteger)numberOfSectionsInTableVi...
分类:
移动开发 时间:
2015-08-01 18:47:49
阅读次数:
112
UIDatePicker ? Locale设置DatePicker的地区,即设置DatePicker显示的语言。// 1.跟踪所有可用的地区,取出想要的地区 NSLog(@"%@", [NSLocale availableLocaleIdentifiers]); // 2. 设置日期选择控件的地区....
分类:
移动开发 时间:
2015-08-01 18:45:13
阅读次数:
272
UIImagePickerController1.+(BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType; 检查指定源是否在设备上可用。//检查照片源是否可用[UIImagePickerController...
分类:
移动开发 时间:
2015-08-01 18:44:27
阅读次数:
207
UIControl事件1.UIControlEventTouchDown单点触摸按下事件:用户点触屏幕,或者又有新手指落下的时候。2.UIControlEventTouchDownRepeat多点触摸按下事件,点触计数大于1:用户按下第二、三、或第四根手指的时候。3.UIControlEventTo...
分类:
移动开发 时间:
2015-08-01 18:43:52
阅读次数:
183
UISwitch属性1. onTintColor 处于on时switch的颜色?switchImage.onTintColor=[UIColorgrayColor];2.tintColor 处于off时switch的颜色switchImage.tintColor=[UIColorgreenColo....
分类:
移动开发 时间:
2015-08-01 18:41:45
阅读次数:
226
UILabel属性1.text:设置标签显示的文本。 2.attributedText:设置标签属性文本。 Ios代码 NSString*text=@"first"; NSMutableAttributedString*textLabelStr=[[NSMutableAttributedString...
分类:
移动开发 时间:
2015-08-01 18:40:58
阅读次数:
196
UIPikerView的属性1. numberOfComponents:返回UIPickerView当前的列数NSInteger num = _pickerView.numberOfComponents;NSLog( @"%d", num);2. - (NSInteger)numberOfRowsI...
分类:
移动开发 时间:
2015-08-01 18:40:45
阅读次数:
187
UISegment属性1.segmentedControlStyle设置segment的显示样式。typedef NS_ENUM(NSInteger, UISegmentedControlStyle) {UISegmentedControlStylePlain, // large plain 系统默...
分类:
移动开发 时间:
2015-08-01 18:37:15
阅读次数:
110