资源简介
自己学IOS时候,做的一个五子棋小游戏的例子。
新手学习练手好材料。
![](http://www.nz998.com/pic/37151.jpg)
代码片段和文件信息
//
// 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 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个文件信息
- 上一篇:LTC6803-SPI
- 下一篇:jrtplib 3.9
相关资源
- 联想H61主板BIOS升级F9KT58AUS支持22NM.i
- Lenovo Z460 SLIC2.1 LENOVO-29CN38WW(V2.15)
- 联想G400G500G490BIOS
- ASUS BIOS 加NVME协议文件: Nvme.ffs NV
- Phoenix BIOS Editor.rar
- HP笔记本BIOS丢失解决方法,DMI TOOLK
- Y450 BIOS白名单
- 五子棋C 源代码
- BIOS修改工具DMI236
- 五子棋游戏实现悔棋功能
- 联想F40/F41bios3.13版
- 联想启天M4350 BIOS升级文件
- 详细图解联想Y430\\Y530笔记本SLIC表2.
- 联想g460 bios 29CN38WW(V2.15)
- G460 2.15 x64 bios
- 三星通用bios更新程序
- rx560bios合集-注意显存颗粒及供电
- 联想K29最新1.70BIOS修改版,去白名单验
- 联想刷bios‘工具
- labview设计的五子棋游戏(源码+文档)
- 解决Y470/Y570更新2.12BIOS后无法识别8G内
- 黑苹果—盈通 R6770-1024GD5 TA 经典版
- 华硕P8H61/USB3 R2.0主板BIOS驱动 免费版
- 映泰Biostar TA870网
- asus华硕 m5a97 le r2.0主板bios 官方版
- 华硕ASUS K42JZ BIOS主板驱动程序 v9.1.1
- ASUS华硕B85主板BIOS驱动程序 官方版
- 联想A320一体机BIOS
- 启天M7150 BIOS
- 启天M7150 L-IG41M主板 BIOS
评论
共有 条评论