-
use core data 蘋(píng)果自帶的數(shù)據(jù)庫(kù)查看全部
-
singleview查看全部
-
mvc 提高重用性 降低耦合性查看全部
-
ios系統(tǒng)講解查看全部
-
mvc查看全部
-
謝謝查看全部
-
好視頻啊,學(xué)到知識(shí)了查看全部
-
asda查看全部
-
iphone各機(jī)型的分辨率查看全部
-
[UIScreen MainScreen]查看全部
-
bounds為邊框大小,xy值永遠(yuǎn)為0查看全部
-
存儲(chǔ)origin的為CGPoint,存儲(chǔ)size的為CGSize,兩個(gè)分別都是枚舉類型,數(shù)值類型為CGFloat查看全部
-
view1.frame.origin.x, view1.frame.origin.y, view1.frame.size.width, view1.frame.size.height. frame和bounds兩個(gè)都是CGRect 類型,兩個(gè)枚舉類型,只有兩個(gè)屬性,分別為origin和size,這兩個(gè)也分別為枚舉類型,屬性分別為xy值和width,height值查看全部
-
能把iOS拼寫(xiě)對(duì)嗎?查看全部
-
UIView *backView=[[UIView alloc] init]; CGSize size=[[UIScreen mainScreen] bounds].size; backView.frame=CGRectMake(size.width/2-25, size.height/2-25, 50, 50); backView.backgroundColor=[UIColor yellowColor]; [self.view addSubview:backView]; //父view 開(kāi)啟子view自適應(yīng) //backView.autoresizesSubviews=YES; UIView *topView=[[UIView alloc] init]; topView.frame=CGRectMake(10, 10, 30, 30); topView.backgroundColor=[UIColor whiteColor]; //topView.autoresizingMask=UIViewAutoresizingFlexibleBottomMargin|UIViewAutoresizingFlexibleLeftMargin|UIViewAutoresizingFlexibleRightMargin|UIViewAutoresizingFlexibleTopMargin; topView.autoresizingMask=UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth; [backView addSubview:topView];查看全部
舉報(bào)
0/150
提交
取消