zhizhesoft

  • 首页
Objective C
Objective-C

OC8_NSData

// // main.m // OC8_NSData // // Created by zhangxueming on 15/6/19. // Copyright (c) 2015年 zhangxueming. All rights reserved. // #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { NSString *string = @"i love i…

2022年4月20日 0条评论 9点热度 0人点赞 risingsun 阅读全文
Objective-C

OC2_分数类

// // Fraction.h // OC2_分数类 // // Created by zhangxueming on 15/6/10. // Copyright (c) 2015年 zhangxueming. All rights reserved. // #import <Foundation/Foundation.h> @interface Fraction : NSObject { NSInteger _numerator; NSInteger _denominator; } - (id)in…

2022年4月20日 0条评论 9点热度 0人点赞 risingsun 阅读全文
Objective-C

OC2_引用计数

// // Dog.h // OC2_引用计数 // // Created by zhangxueming on 15/6/18. // Copyright (c) 2015年 zhangxueming. All rights reserved. // #import <Foundation/Foundation.h> @interface Dog : NSObject { NSString *_name; NSInteger _age; } @property (copy, nonatomic) NS…

2022年4月20日 0条评论 9点热度 0人点赞 risingsun 阅读全文
Objective-C

OC5_构造方法与self指针

// // Dog.h // OC5_构造方法与self指针 // // Created by zhangxueming on 15/6/9. // Copyright (c) 2015年 zhangxueming. All rights reserved. // #import <Foundation/Foundation.h> @interface Dog : NSObject { NSString *_name; NSInteger _age; } //必须以 initWithXXX开头 //在一…

2022年4月20日 0条评论 13点热度 0人点赞 risingsun 阅读全文
Objective-C

OC7_目录操作

// // main.m // OC7_目录操作 // // Created by zhangxueming on 15/6/19. // Copyright (c) 2015年 zhangxueming. All rights reserved. // #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { NSFileManager *fm = [NSFileMana…

2022年4月20日 0条评论 9点热度 0人点赞 risingsun 阅读全文
Objective-C

OC9_文件操作

// // main.m // OC9_文件操作 // // Created by zhangxueming on 15/6/19. // Copyright (c) 2015年 zhangxueming. All rights reserved. // #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { //文件句柄 //以只读的方式创建文件句柄 //+ (inst…

2022年4月20日 0条评论 5点热度 0人点赞 risingsun 阅读全文
Objective-C

OC1_银行账户类

// // BankAccount.h // OC1_银行账户类 // // Created by zhangxueming on 15/6/10. // Copyright (c) 2015年 zhangxueming. All rights reserved. // #import <Foundation/Foundation.h> @interface BankAccount : NSObject { NSString *_account; NSString *_password; float _…

2022年4月20日 0条评论 9点热度 0人点赞 risingsun 阅读全文
Objective-C

OC3_dealloc

// // Dog.h // OC3_dealloc // // Created by zhangxueming on 15/6/18. // Copyright (c) 2015年 zhangxueming. All rights reserved. // #import <Foundation/Foundation.h> @interface Dog : NSObject @end // // Dog.m // OC3_dealloc // // Created by zhangxueming on…

2022年4月20日 0条评论 13点热度 0人点赞 risingsun 阅读全文
Objective-C

OC6_类方法

// // Dog.h // OC6_类方法 // // Created by zhangxueming on 15/6/9. // Copyright (c) 2015年 zhangxueming. All rights reserved. // #import <Foundation/Foundation.h> @interface Dog : NSObject { NSString *_name; NSInteger _age; } + (id)dogCreate; - (NSString *)n…

2022年4月20日 0条评论 14点热度 0人点赞 risingsun 阅读全文
Objective-C

OC3_协议关键字

// // Student.h // OC3_协议关键字 // // Created by zhangxueming on 15/6/24. // Copyright (c) 2015年 zhangxueming. All rights reserved. // #import <Foundation/Foundation.h> #import "Programmer.h" @interface Student : NSObject <Programmer> @end // // Stude…

2022年4月20日 0条评论 18点热度 0人点赞 risingsun 阅读全文
1…34567…56
Search

COPYRIGHT © 2022 zhizhesoft. ALL RIGHTS RESERVED.