上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页
摘要: 1 1.segmentedControlStyle 2 设置segment的显示样式。 3 typedef NS_ENUM(NSInteger, UISegmentedControlStyle) { 4 UISegmentedControlStylePlain, // large plai... 阅读全文
posted @ 2015-05-21 17:43 王世桢 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1 1.minimumValue: 当值可以改变时,滑块可以滑动到最小位置的值,默认为0.0 2 _slider.minimumValue = 10.0; 3 4 2.maximumValue: 当值可以改变时,滑块可以滑动到最大位置的值,默认为1.0 5 _slider.maximumValu... 阅读全文
posted @ 2015-05-21 17:42 王世桢 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1 1. onTintColor 2 处于on时switch的颜色
switchImage.onTintColor=[UIColorgrayColor]; 3 2.tintColor 4 处于off时switch的颜色 5 switchImage.tintColor=[UIColorgree... 阅读全文
posted @ 2015-05-21 17:40 王世桢 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 1 UITableView内置了两种样式:UITableViewStylePlain,UITableViewStyleGrouped 2 3 里的方法: 4 tableView处理步骤 5 #pragma mark 1.有多少组 6 - (NSInteger)numberOfSect... 阅读全文
posted @ 2015-05-21 17:39 王世桢 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1 1.UITextField属性 2 enablesReturnKeyAutomatically 3 默认为No,如果设置为Yes,文本框中没有输入任何字符的话,右下角的返回按钮是disabled的。 4 1.borderStyle 5 设置边框样式,只有设置了才会显示边框样式 6... 阅读全文
posted @ 2015-05-21 17:24 王世桢 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 1 1.text:设置textView中文本 2 _textView.text = @"Now is the time for all godd developers to come to serve their country ";//设置它显示的内容 3 4 2.font:设置textVie... 阅读全文
posted @ 2015-05-21 17:20 王世桢 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 1 1.alpha 2 设置视图的透明度.默认为1. 3 // 完全透明 4 view.alpha = 0; 5 // 不透明 6 view.alpha = 1; 7 2.clipsToBounds 8 // 默认是NO,当设置为yes时,超出当前视图的尺寸的内容和... 阅读全文
posted @ 2015-05-21 17:06 王世桢 阅读(157) 评论(0) 推荐(0) 编辑
摘要: UIColor+ (UIColor *)blackColor; // 0.0 white 黑色+ (UIColor *)darkGrayColor; // 0.333 white 深灰色+ (UIColor *)lightGrayColor; // 0.667 white 亮灰色+ ... 阅读全文
posted @ 2015-05-21 11:58 王世桢 阅读(553) 评论(0) 推荐(0) 编辑
摘要: UIButton1 //1.设置UIButton 的左右移动2 .center属性 获得 CGPoint 来修改x y3 //1.设置UIButton 的放大缩小4 bounds属性 获得CGRect 然后通过size.height设置高 wight设置宽 //3.或者使用frame 来设... 阅读全文
posted @ 2015-05-21 11:57 王世桢 阅读(4217) 评论(0) 推荐(0) 编辑
摘要: 1.问题表现:什么情况?方法居然无法拉线?问题简述:ios的空间拉线到一个.h .m文件中 居然多次拖动无效..问题解决:ios的空间响应单单在代码中创建一个方法是没用的,这个时候通常跟空间是没有响应关系的(代码创建控件的方式另外说),所以这个时候我们需要按住control键拖动一条线与对应的方法产... 阅读全文
posted @ 2015-05-21 11:03 王世桢 阅读(206) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页