Objective-C
文章平均质量分 80
yunshouhu
爱Java,更爱Android,学VC,搞c/c++的我。专注移动安全,游戏安全,逆向安全!十年戎马成神路,君临天下风雷动! https://github.com/yunshouhu
展开
-
xcode 开发工具下载和使用
https://developer.apple.com/downloads/index.action#http://adcdownload.apple.com/Developer_Tools/xcode_4.3.3_for_lion/xcode_4.3.3_for_lion.dmg原创 2014-10-24 14:22:00 · 809 阅读 · 0 评论 -
objective-c之类别与扩展
#import //类别@interface NSString(MyAdditions)+(NSString *)getCopyRightString;@end@implementation NSString(MyAdditions)+(NSString *)getCopyRightString{ return @"Copyright TutorialsYiibai原创 2016-08-03 15:57:07 · 484 阅读 · 0 评论 -
objective-c之委托
#import @protocol PrintProtocolDelegate- (void)processCompleted;@end@interface PrintClass :NSObject{ id delegate;}- (void) printDetails;- (void) setDelegate:(id)newDelegate;@end@im原创 2016-08-03 16:06:01 · 455 阅读 · 0 评论 -
objective-c之动态绑定
#import @interface Square:NSObject{ float area;}- (void)calculateAreaOfSide:(CGFloat)side;- (void)printArea;@end@implementation Square- (void)calculateAreaOfSide:(CGFloat)side{ are原创 2016-08-03 16:15:23 · 537 阅读 · 0 评论 -
objective-c之复合对象
#import //自定义验证表数组ValidatingArray@interface ValidatingArray : NSMutableArray{ NSMutableArray *embeddedArray;}+ validatingArray;- init;- (unsigned)count;- objectAtIndex:(unsigned)index;-原创 2016-08-03 16:20:40 · 752 阅读 · 0 评论 -
objective-c之内存管理
#import @interface SampleClass:NSObject- (void)sampleMethod;@end@implementation SampleClass- (void)sampleMethod{ NSLog(@"Hello, World!");}- (void)dealloc{ NSLog(@"Object deallocat原创 2016-08-03 16:40:25 · 427 阅读 · 0 评论 -
objective-c之存储集合
//// main.m// 存储集合//// Created by wu jianhua on 16-8-3.// Copyright (c) 2016年 wujianhua. All rights reserved.//#import void testNSSet(){ NSAutoreleasePool * pool = [[NSAutoreleasePo原创 2016-08-03 16:51:29 · 456 阅读 · 0 评论 -
objective-c之日期时间和异常处理
//// main.m// 日期时间和异常处理//// Created by wu jianhua on 16-8-3.// Copyright (c) 2016年 wujianhua. All rights reserved.//#import void testDate(){ NSAutoreleasePool * pool = [[NSAutorelea原创 2016-08-03 16:59:13 · 549 阅读 · 0 评论 -
objective-c之文件处理
//// main.m// 文件处理//// Created by wu jianhua on 16-8-3.// Copyright (c) 2016年 wujianhua. All rights reserved.//#import //http://www.yiibai.com/objective_c/objective_c_file_handling.html原创 2016-08-03 17:19:53 · 567 阅读 · 0 评论 -
objective-c之多态
#import @interface Shape : NSObject{ CGFloat area;}- (void)printArea;@end@implementation Shape- (void)printArea{ NSLog(@"The area is %f", area);}@end@interface Square : Shap原创 2016-08-03 15:43:45 · 367 阅读 · 0 评论 -
objective-c之继承
#import @interface Person : NSObject{ NSString *personName; NSInteger personAge;}- (id)initWithName:(NSString *)name andAge:(NSInteger)age;- (void)print;@end@implementation Person原创 2016-08-03 15:36:56 · 448 阅读 · 0 评论 -
objective-c之预定义
//// main.m// 预定义//// Created by wu jianhua on 16-8-3.// Copyright (c) 2016年 wujianhua. All rights reserved.//#import #define message_for(a, b) NSLog(@#a " and " #b ": We love you!")#原创 2016-08-03 11:37:34 · 364 阅读 · 0 评论 -
objective-c之struct
//// main.m// struct//// Created by wu jianhua on 16-8-3.// Copyright (c) 2016年 wujianhua. All rights reserved.//#import struct Books{ NSString *title; NSString *author; NSS原创 2016-08-03 11:21:49 · 1636 阅读 · 0 评论 -
objective-c之数组
//// main.m// 数组//// Created by wu jianhua on 16-8-3.// Copyright (c) 2016年 wujianhua. All rights reserved.//#import @interface SampleClass:NSObject{}- (double) getAverage:(int[]) arr原创 2016-08-03 10:53:20 · 665 阅读 · 0 评论 -
objective-c简单例子
//// main.m// oc002//// Created by wu on 16-8-3.// Copyright (c) 2016年 . All rights reserved.//#import @interface SampleClass:NSObject{ @private int _age;}@property (assign,no原创 2016-08-03 10:01:07 · 1838 阅读 · 0 评论 -
objective-c之构造函数
//// Student.h// constructor_method//// Created by wu jianhua on 16-7-29.// Copyright (c) 2016年 wujianhua. All rights reserved.//#import @interface Student : NSObject{ @public i原创 2016-07-31 22:39:36 · 581 阅读 · 0 评论 -
objective-c demo
//// Student.h// cmd001//// Created by wu jianhua on 16-7-27.// Copyright (c) 2016年 wujianhua. All rights reserved.//#import @interface Student : NSObject{ int age; int no;}-原创 2016-07-31 22:34:33 · 781 阅读 · 0 评论 -
objective-c之回调函数和NSNumber
//// main.m// 块//// Created by wu jianhua on 16-8-3.// Copyright (c) 2016年 wujianhua. All rights reserved.//#import //回调函数指针typedef void (^CompletionBlock)();@interface SampleClass:NS原创 2016-08-03 10:30:19 · 977 阅读 · 0 评论 -
objective-c之类与对象
//// main.m// 类与对象// Created by wu jianhua on 16-8-3.// Copyright (c) 2016年 wujianhua. All rights reserved.//#import @interface Box:NSObject{ double length; // Length of a box原创 2016-08-03 15:11:03 · 413 阅读 · 0 评论 -
iOS 引用 C/C++ 项目:交叉编译与 Objective-C++
转自:https://blog.rinc.xyz/posts/170606-objcxx/最近终于有幸参与公司的 iOS 项目,其中有个 C/C++ 写的库需要调用;之前对 Android JNI/NDK 调用 C/C++ 还算熟悉,但 iOS 混编 C/C++ 却是初次接触,各种被虐..上个周末基本都在解决库的编译问题,爱人Amble也耐心帮我查资料、作分析,感动之余,决定把中途...转载 2019-08-30 16:23:54 · 3238 阅读 · 0 评论