ios对象和指针互转
//取self指针地址
NSString *fooString = [NSString stringWithFormat: @"%ld", (long)self];
long address = [fooString longLongValue];
//指针转对象
TestClasss *newInstance = (TestClasss *)address;
//测试对象是否成功
[TestClasss testFunc];
//取self指针地址
NSString *fooString = [NSString stringWithFormat: @"%ld", (long)self];
long address = [fooString longLongValue];
//指针转对象
TestClasss *newInstance = (TestClasss *)address;
//测试对象是否成功
[TestClasss testFunc];
running pig
IOS Developer