资源简介
自己学IOS时候,做的一个五子棋小游戏的例子。
新手学习练手好材料。
代码片段和文件信息
//
// 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
相关资源
- 基于ALPHA-BETA算法的五子棋程序
- 简易五子棋qt实现
- 五子棋alphabeta
- 五子棋终结者
- 五子棋源码+算法详解
- iOS CB BLE蓝牙4.0极简Demo
- Asus GTX 550 Ti 1024 MB BIOS
- 白卡 574 尔必达 1244-1750.rom
- 小米笔记本pro bios降级教程.doc
- 讯景RX560 4G(V)黑狼版原厂BIOS
- 联想G41bios
- 基于51单片机实现简单五子棋
- 蓝宝石RX580 8G 镁光颗粒原始BIOS
- xfx590镁光bios
- AUSU AFUDOS版本211 不需要验证强刷BIOS
- gpp 3to2 解锁工具
- 蓝宝石rx584三星原厂bios
- 蓝宝石560d原版官方bios
- 蓝宝石超白金R9 390 8G D5 海力士原版
- 蓝宝石R9 390 4G D5 尔必达原版BIOS
- vm12安装苹果mac os Mojave系统10.14_cdr还有
- Modelsim 网盘最新 10.7-se 10.6c10.6d-se 及从
- iOS游戏开发视频教程《愤怒的小鸟》
- ios-swift 实现扫雷.zip
- ios-日历.zip
- VUE全家桶vue2vueroutervuexaxios
- ios-仿美团点餐列表界面.zip
- ios-私人通讯录.zip
- ios-拼图游戏-swift版.zip
- ios-仿饿了么,美团点菜左右tableview联
评论
共有 条评论