0
CFTree
을 사용하여 iOS
응용 프로그램에 트리를 생성합니다. "선언되지 않은 식별자 'CFTree
'사용"오류가 발생했습니다. 내가 누락 된 것? 내 코드 :오류 : "선언되지 않은 식별자 'CFTree'사용
#import "ViewController.h"
#import <CoreFoundation/CoreFoundation.h>
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
CFTree tree = CreateMyTree(kCFAllocatorDefault);
}
static CFTreeRef CreateMyTree(CFAllocatorRef allocator) {
NSString *info = @"Bhushan is great";
CFTreeContext ctx;
ctx.version = 0;
ctx.info = (__bridge void *)(info);
ctx.retain = CFRetain;
ctx.release = CFRelease;
ctx.copyDescription = NULL;
return CFTreeCreate(allocator, &ctx);
}
덕분에, 당신은 할 복잡한 나무를 만들기위한 참조 링크? – Bhushan
@ BH4451 : 아니요, 죄송합니다. –