摘要:
1 1.text:設(shè)置標(biāo)簽顯示文本。 2 2.attributedText:設(shè)置標(biāo)簽屬性文本。 3 Ios代碼 4 NSString*text=@"first"; 5 NSMutableAttributedString*textLabelStr=[[NSMutableAttributedStrin... 閱讀全文
posted @ 2015-05-21 17:59
王世楨
閱讀(229)
評論(0)
推薦(0)
摘要:
1 1.numberOfPages // 設(shè)置有多少頁 默認為0 2 // 2) 設(shè)置頁數(shù) 3 [pageControl setNumberOfPages:kImageCount]; 4 2.currentPage // 設(shè)置當(dāng)前頁 5 [pageControl setCurrentPag... 閱讀全文
posted @ 2015-05-21 17:51
王世楨
閱讀(113)
評論(0)
推薦(0)
摘要:
1 1.numberOfComponents:返回UIPickerView當(dāng)前的列數(shù) 2 NSInteger num = _pickerView.numberOfComponents; 3 NSLog( @"%d", num); 4 2. - (NSInteger)numberOfRowsInCo... 閱讀全文
posted @ 2015-05-21 17:45
王世楨
閱讀(134)
評論(0)
推薦(0)
摘要:
1 1.contentOffset 2 默認CGPointZero,用來設(shè)置scrollView的滾動偏移量。 3 // 設(shè)置scrollView的滾動偏移量 4 scrollView.contentOffset = CGPointMake(0, 200); 5 2.co... 閱讀全文
posted @ 2015-05-21 17:44
王世楨
閱讀(167)
評論(0)
推薦(0)
摘要:
1 1.segmentedControlStyle 2 設(shè)置segment的顯示樣式。 3 typedef NS_ENUM(NSInteger, UISegmentedControlStyle) { 4 UISegmentedControlStylePlain, // large plai... 閱讀全文
posted @ 2015-05-21 17:43
王世楨
閱讀(259)
評論(0)
推薦(0)
摘要:
1 1.minimumValue: 當(dāng)值可以改變時,滑塊可以滑動到最小位置的值,默認為0.0 2 _slider.minimumValue = 10.0; 3 4 2.maximumValue: 當(dāng)值可以改變時,滑塊可以滑動到最大位置的值,默認為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內(nèi)置了兩種樣式: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,如果設(shè)置為Yes,文本框中沒有輸入任何字符的話,右下角的返回按鈕是disabled的。 4 1.borderStyle 5 設(shè)置邊框樣式,只有設(shè)置了才會顯示邊框樣式 6... 閱讀全文
posted @ 2015-05-21 17:24
王世楨
閱讀(318)
評論(0)
推薦(0)
摘要:
1 1.text:設(shè)置textView中文本 2 _textView.text = @"Now is the time for all godd developers to come to serve their country ";//設(shè)置它顯示的內(nèi)容 3 4 2.font:設(shè)置textVie... 閱讀全文
posted @ 2015-05-21 17:20
王世楨
閱讀(204)
評論(0)
推薦(0)
摘要:
1 1.alpha 2 設(shè)置視圖的透明度.默認為1. 3 // 完全透明 4 view.alpha = 0; 5 // 不透明 6 view.alpha = 1; 7 2.clipsToBounds 8 // 默認是NO,當(dāng)設(shè)置為yes時,超出當(dāng)前視圖的尺寸的內(nèi)容和... 閱讀全文
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.設(shè)置UIButton 的左右移動2 .center屬性 獲得 CGPoint 來修改x y3 //1.設(shè)置UIButton 的放大縮小4 bounds屬性 獲得CGRect 然后通過size.height設(shè)置高 wight設(shè)置寬 //3.或者使用frame 來設(shè)... 閱讀全文
posted @ 2015-05-21 11:57
王世楨
閱讀(4245)
評論(0)
推薦(0)
摘要:
1.問題表現(xiàn):什么情況?方法居然無法拉線?問題簡述:ios的空間拉線到一個.h .m文件中 居然多次拖動無效..問題解決:ios的空間響應(yīng)單單在代碼中創(chuàng)建一個方法是沒用的,這個時候通常跟空間是沒有響應(yīng)關(guān)系的(代碼創(chuàng)建控件的方式另外說),所以這個時候我們需要按住control鍵拖動一條線與對應(yīng)的方法產(chǎn)... 閱讀全文
posted @ 2015-05-21 11:03
王世楨
閱讀(210)
評論(0)
推薦(0)
摘要:
1.//退出鍵盤 [self.view endEditing:YES];隱藏手機上方的狀態(tài)欄1 -(BOOL)prefersStatusBarHidden{2 return YES;3 } 1 //獲取當(dāng)前控制器所管理的view下地所有子控件 2 //subviews標(biāo)示獲取某... 閱讀全文
posted @ 2015-05-21 10:50
王世楨
閱讀(219)
評論(0)
推薦(0)
摘要:
IOS的界面的制作,相對于Android來說 簡潔了很多,雖然創(chuàng)建布局的方式都是兩種(代碼創(chuàng)建、布局文件)但是Android中的xml布局文件在某些方面也屬于代碼創(chuàng)建,因為自己使用到得每一個屬性 都需要記憶屬性名,然后利用快捷鍵的方式來進行引入 ,例如 @android: ...的方式導(dǎo)出,如果自身... 閱讀全文
posted @ 2015-05-21 10:27
王世楨
閱讀(871)
評論(0)
推薦(0)

浙公網(wǎng)安備 33010602011771號