摘要:
1 1.segmentedControlStyle 2 設置segment的顯示樣式。 3 typedef NS_ENUM(NSInteger, UISegmentedControlStyle) { 4 UISegmentedControlStylePlain, // large plai... 閱讀全文
posted @ 2015-05-21 17:43
王世楨
閱讀(259)
評論(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
王世楨
閱讀(271)
評論(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
王世楨
閱讀(308)
評論(0)
推薦(0)
摘要:
1 UITableView內置了兩種樣式:UITableViewStylePlain,UITableViewStyleGrouped 2 3 里的方法: 4 tableView處理步驟 5 #pragma mark 1.有多少組 6 - (NSInteger)numberOfSect... 閱讀全文
posted @ 2015-05-21 17:39
王世楨
閱讀(171)
評論(0)
推薦(0)
摘要:
1 1.UITextField屬性 2 enablesReturnKeyAutomatically 3 默認為No,如果設置為Yes,文本框中沒有輸入任何字符的話,右下角的返回按鈕是disabled的。 4 1.borderStyle 5 設置邊框樣式,只有設置了才會顯示邊框樣式 6... 閱讀全文
posted @ 2015-05-21 17:24
王世楨
閱讀(318)
評論(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
王世楨
閱讀(204)
評論(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
王世楨
閱讀(166)
評論(0)
推薦(0)
摘要:
UIColor+ (UIColor *)blackColor; // 0.0 white 黑色+ (UIColor *)darkGrayColor; // 0.333 white 深灰色+ (UIColor *)lightGrayColor; // 0.667 white 亮灰色+ ... 閱讀全文
posted @ 2015-05-21 11:58
王世楨
閱讀(582)
評論(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
王世楨
閱讀(4245)
評論(0)
推薦(0)
摘要:
1.問題表現:什么情況?方法居然無法拉線?問題簡述:ios的空間拉線到一個.h .m文件中 居然多次拖動無效..問題解決:ios的空間響應單單在代碼中創建一個方法是沒用的,這個時候通常跟空間是沒有響應關系的(代碼創建控件的方式另外說),所以這個時候我們需要按住control鍵拖動一條線與對應的方法產... 閱讀全文
posted @ 2015-05-21 11:03
王世楨
閱讀(210)
評論(0)
推薦(0)

浙公網安備 33010602011771號