資源簡介
讀了別人寫的,沒看懂。看了一個swift的2048開發,自己能力沒有看懂,相信也有同學和我一樣,自己就試著用自己的思想寫了一套純oc開發的2048,(時間較緊,寫得還很粗糙,還有缺憾,望見諒)供大家借鑒,交流,提前祝大家新年快樂~~!!

代碼片段和文件信息
//
//??AppDelegate.m
//??Game2048
//
//??Created?by?CSX?on?2017/1/12.
//??Copyright???2017年?宗盛商業.?All?rights?reserved.
//
#import?“AppDelegate.h“
#import?“ViewController.h“
@interface?AppDelegate?()
@end
@implementation?AppDelegate
-?(BOOL)application:(UIApplication?*)application?didFinishLaunchingWithOptions:(NSDictionary?*)launchOptions?{
????//?Override?point?for?customization?after?application?launch.
????
????UIStoryboard?*main?=?[UIStoryboard?storyboardWithName:@“Main“?bundle:nil];
????UIViewController?*viewVC?=?[main?instantiateInitialViewController];
????UINavigationController?*nav?=?[[UINavigationController?alloc]initWithRootViewController:viewVC];
????self.window.rootViewController?=?nav;
????
????return?YES;
}
-?(void)applicationWillResignActive:(UIApplication?*)application?{
????//?Sent?when?the?application?is?about?to?move?from?active?to?inactive?state.?This?can?occur?for?certain?types?of?temporary?interruptions?(such?as?an?incoming?phone?call?or?SMS?message)?or?when?the?user?quits?the?application?and?it?begins?the?transition?to?the?background?state.
????//?Use?this?method?to?pause?ongoing?tasks?disable?timers?and?invalidate?graphics?rendering?callbacks.?Games?should?use?this?method?to?pause?the?game.
}
-?(void)applicationDidEnterBackground:(UIApplication?*)application?{
????//?Use?this?method?to?release?shared?resources?save?user?data?invalidate?timers?and?store?enough?application?state?information?to?restore?your?application?to?its?current?state?in?case?it?is?terminated?later.
????//?If?your?application?supports?background?execution?this?method?is?called?instead?of?applicationWillTerminate:?when?the?user?quits.
}
-?(void)applicationWillEnterForeground:(UIApplication?*)application?{
????//?Called?as?part?of?the?transition?from?the?background?to?the?active?state;?here?you?can?undo?many?of?the?changes?made?on?entering?the?background.
}
-?(void)applicationDidBecomeActive:(UIApplication?*)application?{
????//?Restart?any?tasks?that?were?paused?(or?not?yet?started)?while?the?application?was?inactive.?If?the?application?was?previously?in?the?background?optionally?refresh?the?user?interface.
}
-?(void)applicationWillTerminate:(UIApplication?*)application?{
????//?Called?when?the?application?is?about?to?terminate.?Save?data?if?appropriate.?See?also?applicationDidEnterBackground:.
}
@end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-01-12?17:58??Game2048\
?????文件????????6148??2017-01-16?17:41??Game2048\.DS_Store
?????目錄???????????0??2017-01-16?17:43??__MACOSX\
?????目錄???????????0??2017-01-16?17:43??__MACOSX\Game2048\
?????文件?????????120??2017-01-16?17:41??__MACOSX\Game2048\._.DS_Store
?????目錄???????????0??2017-01-16?17:29??Game2048\.git\
?????文件??????????15??2017-01-12?17:52??Game2048\.git\COMMIT_EDITMSG
?????文件?????????137??2017-01-12?17:52??Game2048\.git\config
?????文件??????????73??2017-01-12?17:52??Game2048\.git\desc
?????文件??????????23??2017-01-12?17:52??Game2048\.git\HEAD
?????目錄???????????0??2017-01-12?17:52??Game2048\.git\hooks\
?????文件?????????177??2017-01-12?17:52??Game2048\.git\hooks\README.sample
?????文件????????3565??2017-01-16?17:29??Game2048\.git\index
?????目錄???????????0??2017-01-12?17:52??Game2048\.git\info\
?????文件??????????40??2017-01-12?17:52??Game2048\.git\info\exclude
?????目錄???????????0??2017-01-16?17:43??__MACOSX\Game2048\.git\
?????目錄???????????0??2017-01-16?17:43??__MACOSX\Game2048\.git\info\
?????文件?????????171??2017-01-12?17:52??__MACOSX\Game2048\.git\info\._exclude
?????目錄???????????0??2017-01-12?17:52??Game2048\.git\logs\
?????文件?????????165??2017-01-12?17:52??Game2048\.git\logs\HEAD
?????目錄???????????0??2017-01-12?17:52??Game2048\.git\logs\refs\
?????目錄???????????0??2017-01-12?17:52??Game2048\.git\logs\refs\heads\
?????文件?????????165??2017-01-12?17:52??Game2048\.git\logs\refs\heads\master
?????目錄???????????0??2017-01-16?17:29??Game2048\.git\ob
?????目錄???????????0??2017-01-12?17:52??Game2048\.git\ob
?????文件??????????68??2017-01-12?17:52??Game2048\.git\ob
?????目錄???????????0??2017-01-12?17:52??Game2048\.git\ob
?????文件????????3684??2017-01-12?17:52??Game2048\.git\ob
?????目錄???????????0??2017-01-12?18:01??Game2048\.git\ob
?????文件?????????177??2017-01-12?18:01??Game2048\.git\ob
?????目錄???????????0??2017-01-12?17:59??Game2048\.git\ob
............此處省略173個文件信息
評論
共有 條評論