![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
IPHONE学习
java886o
介绍个灰机,木虾米好介绍的.
展开
-
【IPHONE开发-OBJECTC入门学习】基本数据类型
#import int main(int argc, const char * argv[]) { @autoreleasepool { //基本数据类型变量的定义 int age = 18; float f = 3.15F; double d = 4.53234235; char c原创 2013-06-05 11:20:24 · 527 阅读 · 0 评论 -
【IPHONE开发-OBJECTC入门学习】文件的操作,读写复制文件
FileTools.h #import //文件工具类 @interface FileTools : NSObject //复制文件 + (void) copyFileWithSrcFile:(NSString*) srcFilePath withBakFile:(NSString*) bakFilePath; //获取文件的大小 + (NSNumber*) fileLengthW原创 2013-06-06 18:57:48 · 860 阅读 · 0 评论 -
【IPHONE开发-OBJECTC入门学习】复制对象,深浅复制
#import int main(int argc, const char * argv[]) { @autoreleasepool { NSMutableArray* arr1 = [[NSMutableArray alloc] initWithObjects:@"1",@"2",@"3",@"4",@"5", nil];原创 2013-06-07 11:59:32 · 661 阅读 · 0 评论 -
【IPHONE开发-OBJECTC入门学习】对象的归档和解归档
main.m #import #import "Person.h" int main(int argc, const char * argv[]) { @autoreleasepool { //-----------第1种归档方式--------- //1.使用NSKeyedArchiver 归档对原创 2013-06-07 13:55:44 · 824 阅读 · 0 评论 -
【IPHONE开发-OBJECTC入门学习】单例对象设计模式
UserController.h #import @interface UserController : NSObject { int _id; } @property (nonatomic,assign) int _id; - (void) display; + (id) defaultUserController:(int) _id; @end原创 2013-06-07 14:52:01 · 710 阅读 · 0 评论 -
【IPHONE开发-OBJECTC入门学习】NSUserDefaults使用
ELYTAppDelegate.m #import "ELYTAppDelegate.h" @implementation ELYTAppDelegate @synthesize window = _window; - (void)dealloc { [_window release]; [super dealloc]; } - (BOOL)applicati原创 2013-06-07 15:17:27 · 645 阅读 · 0 评论