-
遍歷子view查看全部
-
父視圖與子視圖查看全部
-
frame、bounds、center查看全部
-
view查看全部
-
view.frame.origin.x(y) view.freme.size.width(height) //bounds-邊框大小x/y永遠(yuǎn)為0 view.bounds.origin.x(y) view.bounds.size.width(height)查看全部
-
int W=[[UIScreen mainScreen] bounds].size.width; int H=[[UIScreen mainScreen] bounds].size.height; NSLog(@"w:%f h:%f",W,H); //狀態(tài)欄高度為20px,我們?cè)谠O(shè)置控件的frame時(shí)需要讓出20px查看全部
-
蘋果屏幕大小查看全部
-
viewDidLoad.m //視圖 UIView *view1=[[UIView alloc] inint]; //位置大小 view1.freme=CGRectMake(CGFloat x,CGFloat y,CGFloat width,CGFloat height); //背景顏色 view1.backgroundColor=[UIColor redColor]; //將視圖加入到父視圖中 [self.view addSubview:view1];查看全部
-
UIView 1/ (1)/UI的基類,基礎(chǔ);(2)/UIView的屬性;(3)/UIView的方法;(4)/UIView的自適應(yīng);查看全部
-
AppDaiegate.m 1/_window=[[UIWindow alloc(實(shí)例化window)] initWithFrame(設(shè)置控件大小和位置):[[UIScreen minScreen(主屏幕)] bounds(屏幕大小一樣)]]; 2/_window.backgroundColor(設(shè)置背景顏色)=[UIColor redColor]; 3/[_window makeKeyAndVisible];(設(shè)置主屏幕) 4/設(shè)置屏幕級(jí)別,可以有多個(gè)窗口,前后關(guān)系 _window.windowLevel=UIWindowLevelNormal;(正常)查看全部
-
IOS main.h文件查看全部
-
IOS UI學(xué)習(xí) 1/創(chuàng)建xcode IOS項(xiàng)目 IOS--Single View Application--寫Name(Use Core Data蘋果自帶的數(shù)據(jù)庫(kù)) 2/寫UI注意引用:main.m文件(在Suppporting File文件)--#import <UIKit/UIKit.h> 3/main.h @autoreleasepool 自動(dòng)釋放池查看全部
-
1x 2x 3x查看全部
-
設(shè)置陰影查看全部
-
文本標(biāo)簽查看全部
舉報(bào)
0/150
提交
取消