資源簡(jiǎn)介
自己學(xué)IOS時(shí)候,做的一個(gè)五子棋小游戲的例子。
新手學(xué)習(xí)練手好材料。

代碼片段和文件信息
//
//??GobangAppDelegate.m
//??GobangGame
//
//??Created?by?Book?Pro?MAC?on?12-12-15.
//??Copyright?(c)?2012年?__MyCompanyName__.?All?rights?reserved.
//
#import?“GobangAppDelegate.h“
#import?“GobangViewController.h“
@implementation?GobangAppDelegate
@synthesize?window?=?_window;
@synthesize?viewController?=?_viewController;
-?(void)dealloc
{
????[_window?release];
????[_viewController?release];
????[super?dealloc];
}
-?(BOOL)application:(UIApplication?*)application?didFinishLaunchingWithOptions:(NSDictionary?*)launchOptions
{
????self.window?=?[[[UIWindow?alloc]?initWithframe:[[UIScreen?mainScreen]?bounds]]?autorelease];
????//?Override?point?for?customization?after?application?launch.
????self.viewController?=?[[[GobangViewController?alloc]?initWithNibName:@“GobangViewController“?bundle:nil]?autorelease];
????self.window.rootViewController?=?self.viewController;
????[self.window?makeKeyAndVisible];
????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?throttle?down?OpenGL?ES?frame?rates.?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?inactive?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
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-12-19?14:31??GobangGame\
?????文件????????6148??2012-12-19?14:31??GobangGame\.DS_Store
?????目錄???????????0??2012-12-28?15:00??__MACOSX\
?????目錄???????????0??2012-12-28?15:00??__MACOSX\GobangGame\
?????文件??????????82??2012-12-19?14:31??__MACOSX\GobangGame\._.DS_Store
?????目錄???????????0??2012-12-21?15:24??GobangGame\GobangGame\
?????目錄???????????0??2012-12-16?16:00??GobangGame\GobangGame\en.lproj\
?????文件??????362383??2012-12-16?16:00??GobangGame\GobangGame\en.lproj\GobangViewController.xib
?????文件??????????45??2012-12-15?21:33??GobangGame\GobangGame\en.lproj\InfoPlist.strings
?????目錄???????????0??2012-12-28?15:00??__MACOSX\GobangGame\GobangGame\
?????目錄???????????0??2012-12-28?15:00??__MACOSX\GobangGame\GobangGame\en.lproj\
?????文件?????????171??2012-12-15?21:33??__MACOSX\GobangGame\GobangGame\en.lproj\._InfoPlist.strings
?????文件?????????402??2012-12-16?12:30??GobangGame\GobangGame\GobangAppDelegate.h
?????文件?????????171??2012-12-16?12:30??__MACOSX\GobangGame\GobangGame\._GobangAppDelegate.h
?????文件????????2625??2012-12-16?15:58??GobangGame\GobangGame\GobangAppDelegate.m
?????文件?????????171??2012-12-16?15:58??__MACOSX\GobangGame\GobangGame\._GobangAppDelegate.m
?????文件????????1202??2012-12-15?21:33??GobangGame\GobangGame\GobangGame-Info.plist
?????文件?????????323??2012-12-15?21:33??GobangGame\GobangGame\GobangGame-Prefix.pch
?????文件?????????171??2012-12-15?21:33??__MACOSX\GobangGame\GobangGame\._GobangGame-Prefix.pch
?????文件?????????615??2012-12-17?18:00??GobangGame\GobangGame\GobangGameView.h
?????文件?????????171??2012-12-17?18:00??__MACOSX\GobangGame\GobangGame\._GobangGameView.h
?????文件????????5449??2012-12-18?18:55??GobangGame\GobangGame\GobangGameView.m
?????文件?????????171??2012-12-18?18:55??__MACOSX\GobangGame\GobangGame\._GobangGameView.m
?????文件?????????337??2012-12-16?16:00??GobangGame\GobangGame\GobangViewController.h
?????文件?????????171??2012-12-16?16:00??__MACOSX\GobangGame\GobangGame\._GobangViewController.h
?????文件????????1348??2012-12-21?15:24??GobangGame\GobangGame\GobangViewController.m
?????文件?????????171??2012-12-21?15:24??__MACOSX\GobangGame\GobangGame\._GobangViewController.m
?????文件?????????362??2012-12-15?21:33??GobangGame\GobangGame\main.m
?????文件?????????171??2012-12-15?21:33??__MACOSX\GobangGame\GobangGame\._main.m
?????目錄???????????0??2012-12-15?21:34??GobangGame\GobangGame.xcodeproj\
?????文件???????12526??2012-12-15?21:34??GobangGame\GobangGame.xcodeproj\project.pbxproj
............此處省略12個(gè)文件信息
- 上一篇:LTC6803-SPI
- 下一篇:jrtplib 3.9
評(píng)論
共有 條評(píng)論