自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 UIScrollView的用法

UIScrollView 1. contentOffset 默认CGPointZero,用来设置scrollView的滚动偏移量。 // 设置scrollView的滚动偏移量     scrollView.contentOffset = CGPointMake(0, 200); 2. contentSize 默认CGSizeZero,用来设置scrollView的滚动范围。 // 设

2015-04-22 21:51:09 382

原创 UIPikerView控件

UIPikerView的属性 1. numberOfComponents:返回UIPickerView当前的列数 NSInteger num = _pickerView.numberOfComponents; NSLog( @"%d", num); 2.- (NSInteger)numberOfRowsInComponent:(NSInteger)component;返回component

2015-04-22 21:48:10 369

原创 UIPageControl

UIPageControl 1.   numberOfPages // 设置有多少页默认为0 // 2) 设置页数    [pageControl setNumberOfPages:kImageCount]; 2.   currentPage  // 设置当前页 [pageControl setCurrentPage:0];   3.   pageIndica

2015-04-22 21:47:58 380

翻译 UILabel属性

UILabel属性 1.text:设置标签显示文本。  2.attributedText:设置标签属性文本。  Ios代码  NSString *text = @"first";   NSMutableAttributedString *textLabelStr = [[NSMutableAttributedString alloc] initWithString:text];   [

2015-04-20 22:01:51 469

翻译 UIImageView属性

UIImageView属性   1.Image 设置图片 UIImageView *_imageView = [[UIImageViewalloc]init];   _imageView.image = [UIImageimageNamed:@"me.png"];   2.highlightedImage 设置高亮状态下显示的图片 _imageView.highlightedI

2015-04-20 21:58:57 542

翻译 UIImagePickerController

UIImagePickerController 1.+(BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType;                 检查指定源是否在设备上可用。 //检查照片源是否可用 [UIImagePickerControllerisSourceTypeAvailable:UIImag

2015-04-20 21:58:02 423

翻译 UIDatePicker使用三

11.1日期范围 你可以通过设置mininumDate 和 maxinumDate 属性,来指定使用的日期范围。如果用户试图滚动到超出这一范围的日期,表盘会回滚到最近的有效日期。两个方法都需要NSDate 对象作参数: 1.  NSDate* minDate = [[NSDate alloc]initWithString:@"1900-01-01 00:00:00 -0500"];  

2015-04-17 00:08:02 518

翻译 UIDatePicker使用二

10.1初始化 //不用设置宽高,因为它的宽高是固定的 UIDatePicker *datePicker = [[UIDatePickeralloc] init];   10.2常用设置 // 设置区域为中国简体中文 datePicker.locale= [[NSLocale alloc]                                                

2015-04-17 00:07:10 589

翻译 UIDatePicker使用一

UIDatePicker   1.    Locale 设置DatePicker的地区,即设置DatePicker显示的语言。 // 1.跟踪所有可用的地区,取出想要的地区 NSLog(@"%@", [NSLocaleavailableLocaleIdentifiers]);   // 2.设置日期选择控件的地区 [datePicker setLocale:[[NSLocale

2015-04-17 00:03:14 541

翻译 基础控件 UIControl的一些用法

UIControl事件 1.UIControlEventTouchDown 单点触摸按下事件:用户点触屏幕,或者又有新手指落下的时候。 2.UIControlEventTouchDownRepeat 多点触摸按下事件,点触计数大于1:用户按下第二、三、或第四根手指的时候。 3.UIControlEventTouchDragInside 当一次触摸在控件窗口内拖动时。 4.UICont

2015-04-17 00:02:27 562

原创 基础控件 UIButton属性

UIButton属性 1.UIButton状态: UIControlStateNormal          // 正常状态    UIControlStateHighlighted     // 高亮状态    UIControlStateDisabled        // 禁用状态     UIControlStateSelected        // 选中状态     UIC

2015-04-17 00:01:15 566

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除