任何人都可以解釋我的NSArray獲得什麼之後這段代碼呢....獲取UITableView部分和行後......這段代碼做了什麼?
- (UIViewController *)sampleForIndexPath:(NSIndexPath *)indexPath {
NSArray *samples = [samples_ objectAtIndex:indexPath.section];
Class clazz = [samples objectAtIndex:indexPath.row];
UIViewController *instance = [[clazz alloc] initWithNibName:nil bundle:nil];
return [instance autorelease];
}
我得到科NSArray的......那如何才能指定行的值到類?