方法1,通過(guò)文件路徑加載(本地) NSString *path = [[NSBundle mainBundle] pathForResource...
方法1 -[UIImage animatedImageWithImages:動(dòng)畫數(shù)組duration:持續(xù)時(shí)間]; // 可以獲取一個(gè)能做動(dòng)畫的...
[UIView beginAnimations:nil context:nil]; //準(zhǔn)備開始動(dòng)畫 [UIView setAnimationD...
//一定時(shí)間內(nèi)完成動(dòng)作后執(zhí)行某個(gè)動(dòng)作 +(void)animateWithDuration:(NSTimeInterval)duration a...
1-通過(guò)transform修改位置(平移) CGAffineTransformMakeTranslation(X偏移量,Y偏移量);//變到某個(gè)...
一、 for循環(huán)快速遍歷 -(void)dictFor{ NSDictionary*dict=@{@”k1”:@”v1”,@”k2”:@”v2”...
一、for循環(huán) -(void)arrayfor{ //快速創(chuàng)建一個(gè)oc數(shù)組 NSArray *array =@[@”one”,@”two”]; ...
程序啟動(dòng)分為兩類: 一.有storyboard 1.main函數(shù) 2.UIApplicationMain *創(chuàng)建UIApplication對(duì)象...