摘要: UIPageControl1. numberOfPages // 设置有多少页 默认为0 [pageControl setNumberOfPages:kImageCount];2. currentPage // 设置当前页[pageControl setCurrentPage:0];3. pageIndicatorTintColor // 设置页码指示器颜色[pageControl setPageIndicatorTintColor:[UIColor blackColor]];4. currentPageIndicatorTintColor // 设置当前页码指示器颜色[pageControl 阅读全文
posted @ 2013-12-19 17:52 徐明清 阅读(562) 评论(0) 推荐(0) 编辑
摘要: UISegment属性1.segmentedControlStyle设置segment的显示样式。typedef NS_ENUM(NSInteger, UISegmentedControlStyle) {UISegmentedControlStylePlain, // large plain 系统默认平板样式segmentedControl.segmentedControlStyle = UISegmentedControlStylePlain;UISegmentedControlStyleBordered, // large bordered 黑边样式segmentedControl.seg 阅读全文
posted @ 2013-12-19 17:30 徐明清 阅读(2545) 评论(0) 推荐(0) 编辑
摘要: UIView1.alpha设置视图的透明度.默认为1. // 完全透明 view.alpha = 0; // 不透明 view.alpha = 1;2.clipsToBounds// 默认是NO,当设置为yes时,超出当前视图的尺寸的内容和子视图不会显示。view.clipsToBounds = YES;3.hidden// 默认是NO,当设置为yes,视图就看不见了。view.hidden = YES;4.userInteractionEnabled // 默认为YES,如果设置为No,view就不能和用户交互了。(即不能响应事件)view.userInteractionEnabled = 阅读全文
posted @ 2013-12-18 00:09 徐明清 阅读(1207) 评论(0) 推荐(1) 编辑
摘要: UIControl事件1.UIControlEventTouchDown单点触摸按下事件:用户点触屏幕,或者又有新手指落下的时候。2.UIControlEventTouchDownRepeat多点触摸按下事件,点触计数大于1:用户按下第二、三、或第四根手指的时候。3.UIControlEventTouchDragInside当一次触摸在控件窗口内拖动时。4.UIControlEventTouchDragOutside当一次触摸在控件窗口之外拖动时。5.UIControlEventTouchDragEnter当一次触摸从控件窗口之外拖动到内部时。6.UIControlEventTouchDrag 阅读全文
posted @ 2013-12-17 23:57 徐明清 阅读(880) 评论(0) 推荐(0) 编辑
摘要: UIAlertView1.Title获取或设置UIAlertView上的标题。2.Message获取或设置UIAlertView上的消息 UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Title" message:@"message" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确定", nil]; alertView.title = @"T"; 阅读全文
posted @ 2013-12-16 21:36 徐明清 阅读(10727) 评论(0) 推荐(0) 编辑
摘要: UIActivityIndicatorView1. activityIndicatorViewStyle设置指示器的样式UIActivityIndicatorViewStyleWhiteLargeUIActivityIndicatorViewStyleWhite (默认样式)UIActivityIndicatorViewStyleGray2.hidesWhenStopped当停止动画的时候,是否隐藏。默认为YES。3. 实例化指示器对象,根据样式设置尺寸,不需要手动设置。-(id)initWithActivityIndicatorStyle:(UIActivityIndicatorViewSt 阅读全文
posted @ 2013-12-16 21:24 徐明清 阅读(5542) 评论(0) 推荐(0) 编辑
摘要: UITextField属性0. enablesReturnKeyAutomatically默认为No,如果设置为Yes,文本框中没有输入任何字符的话,右下角的返回按钮是disabled的。1.borderStyle设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UITextBorderStyleRoundedRect;typedef enum { UITextBorderStyleNone, UITextBorderStyleLine, UITextBorderStyleBezel, UITextBorderStyleRoundedRect } UITe... 阅读全文
posted @ 2013-12-14 20:00 徐明清 阅读(4629) 评论(1) 推荐(2) 编辑
摘要: UISwitch属性1. onTintColor 处于on时switch的颜色switchImage.onTintColor=[UIColorgrayColor];2.tintColor处于off时switch的颜色switchImage.tintColor=[UIColorgreenColor];3.onImage 设置on的图标switchImage.onImage=[UIImageimageNamed:@"1.png"];4. offImage设置off的图标switchImage.offImage=[UIImageimageNamed:@"4.png&qu 阅读全文
posted @ 2013-12-13 15:22 徐明清 阅读(1058) 评论(0) 推荐(1) 编辑
摘要: UISlide属性1.minimumValue: 当值可以改变时,滑块可以滑动到最小位置的值,默认为0.0_slider.minimumValue = 10.0;2.maximumValue: 当值可以改变时,滑块可以滑动到最大位置的值,默认为1.0_slider.maximumValue = 100.0;3.continuous: 如果设置YES,在拖动滑块的任何时候,滑块的值都会改变。默认设置为YES[_slider setContinuous:NO]; // 在滑块滑动结束时才获取滑块的值4.minimumValueImage: 滑块条最小值处设置的图片,默认为nil_slider.mi 阅读全文
posted @ 2013-12-13 15:18 徐明清 阅读(452) 评论(0) 推荐(0) 编辑
摘要: UIButton属性1.UIButton状态:UIControlStateNormal // 正常状态UIControlStateHighlighted // 高亮状态UIControlStateDisabled // 禁用状态UIControlStateSelected // 选中状态UIControlStateApplication //UIControlStateReserved // 保留状态2.Uibutton类型:UIButtonTypeCustom //自定义类型 添加图片: 灰色背景颜色:UIButtonTypeRoundedRect //圆角类型UIButtonTypeDet 阅读全文
posted @ 2013-12-13 15:09 徐明清 阅读(1177) 评论(0) 推荐(0) 编辑