我创建了NSTableView,但这不会显示在NSWindow上。代码示例:
NSTableView *tbl = [[NSTableView alloc] initWithFrame:NSMakeRect(0,0,500,500)];
[window.contentView addSubview:tbl];附注:我只需要在没有IBOutlets的情况下申请
发布于 2011-01-20 21:44:59
为什么不使用uitableview呢?它是表视图的标准类。
UITableView *tbl = [[UITableView alloc :NSMakeRect(0,0,500,500)] autorelease];window.contentView addSubview:tbl;window makeKeyAndVisible;
https://stackoverflow.com/questions/4747059
复制相似问题