导航

2013年1月14日

摘要: UILaunchImageFile (String - iPhone OS) specifies the name of the launch image file for the application. If this key is not specified, the system assumes a name of Default.png. This key is typically used by universal applications when different sets of launch images are needed for iPad versus iPhone 阅读全文

posted @ 2013-01-14 22:47 ADaii 阅读(6530) 评论(0) 推荐(0) 编辑

摘要: Cocos2d-2.0横竖屏设置<AppDelegate.m>iOS 6+设置使用 1 // Only valid for iOS 6+. NOT VALID for iOS 4 / 5. 2 -(NSUInteger)supportedInterfaceOrientations { 3 4 // iPhone only 5 if( [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone ) 6 return UIInterfaceOrientationMas... 阅读全文

posted @ 2013-01-14 22:45 ADaii 阅读(465) 评论(0) 推荐(0) 编辑

2013年1月7日

摘要: 主要内容for循环while循环控制台输入-------我是分割线--------1.for循环<For.h> 1 #import <Foundation/Foundation.h> 2 3 @interface For : NSObject 4 { 5 int sum; 6 } 7 8 - (id) init; 9 10 - (int) forFrom:(int)fromNum andTo:(int)toNum; //定义一个函数为forFrom:andTo:11 12 13 @end<For.m> 1 #import "For.h" 阅读全文

posted @ 2013-01-07 13:36 ADaii 阅读(279) 评论(0) 推荐(0) 编辑

2013年1月6日

摘要: 主要内容点语法@property @synthesize 用法如何使用点语法--------我是分割线--------@peoperty int age; 等价于- (void) setAge:(int)newAge;- (int) age;<newDog.h>#import <Foundation/Foundation.h>@interface newDog : NSObject{ int _age;}@property int age;@end@synthesize age = _age; 等价于- (void) setAge:(int)newAge{ _age = 阅读全文

posted @ 2013-01-06 20:00 ADaii 阅读(188) 评论(0) 推荐(0) 编辑

摘要: 主要内容1.类的声明2.函数/消息的定义的方法3.字段的作用域4.使用Xcode建立项目-----------我是分割线------------1.类的声明<Dog.h>1 #import <Foundation/Foundation.h>2 @interface Dog : NSObject3 {}4 @end2.类的实现<Dog.m>1 #import "Dog.h"2 @implementation Dog3 4 @end3.创建/销毁OC对象创建对象 Dog *dog = [Dog alloc];初始化构造函数 [dog init 阅读全文

posted @ 2013-01-06 00:40 ADaii 阅读(281) 评论(0) 推荐(0) 编辑