1. 頁面常用view ?height
狀態(tài)欄(時(shí)間沉迹、信號涌韩。。那一欄) height 20
navigationBar height 44
tabbar height 49
2. 手機(jī)型號?
http://normalhh.com/2016/01/24/iOS及Mac開源項(xiàng)目和學(xué)習(xí)資料【超級全面】/w
1. 頁面常用view? height
狀態(tài)欄(時(shí)間、信號黄鳍。。那一欄) height 20
navigationBar height 44
tabbar height 49
2.screen size:
3.5 inch 640 * 960px //320 480 @2X
4.0 inch? ? ? ? ? 640 1136 // 320 568? @2X
4.7? ? ? ? ? ? ? ? ? 750 1334// 375 667? ? @2X
5.5? ? ? ? ? ? ? ? 1080 1920// 414 736? ? @3X
CGAffineTranslation? rotation平匈、scale框沟、tranlate....
@property (nonatomic) CGRect frame;
控件所在矩形框在父控件中的位置和尺寸(以父控件的左上角為坐標(biāo)原點(diǎn))。
@property (nonatomic) CGRect bounds;
控件所在矩形框的位置和尺寸(以自己左上角為坐標(biāo)原點(diǎn)增炭,所以bounds的x\y一般為0)忍燥。
@property (nonatomic) CGPoint center;
控件中點(diǎn)的位置(以父控件的左上角為坐標(biāo)原點(diǎn))。
frame(修改位置和大邢蹲恕)center(只能修改位置 CGPoint) bounds(只能修改大忻仿ⅰ) transform(位置、大小输玷、旋轉(zhuǎn))
OC中不能直接修改一個(gè)對象的結(jié)構(gòu)體屬性的成員队丝。// self.headButton.frame.y -= 10; is Wrong. 不能直接給成員結(jié)構(gòu)體屬性賦值。
CGRect frame = self.headButton.frame;
frame.origin.x -= 10;
self.headButton.frame = frame;//沒有動畫欲鹏,直接執(zhí)行
簡易動畫的兩種方式:
》頭尾式
[UIView beginAnimations: nil context: nil];
[UIView setAnimationDuration: 1];
//需要執(zhí)行動畫的代碼
[UIView commitAnimations];
》Block式
[UIView animateWithDuration: 0.5 animations: ^{
//需要執(zhí)行動畫的代碼
}];
A.
imageNamed 帶有緩存机久,通過imageNamed創(chuàng)建的圖片會放到緩存中
當(dāng)你把圖片放在 Images.xcassets 就只能通過imageNamed加載
UIImage? *image = [UIImage imageNamed:imageN];
B.
imageWithContentsOfFile 不帶緩存
//圓角
tipView.layer.cornerRadius = 5;
tipView.layer.masksToBounds = YES; //剪裁超過bounds的部分
strong? 對象
weak UI控件, 代理對象
assign 基本類型 數(shù)值類型 BOOL 結(jié)構(gòu) 枚舉
copy 字符串
http://www.cnblogs.com/mjios/
https://developer.apple.com/appstore/contact/appreviewteam/index.html