Массив items в моем пользовательском контроллере uitableview никогда не заполняется из массива tmp!отладка вызывает метод init, но ничего не изменилось в массиве self.items?
в корневом контроллере:
MultiSelectionTableViewController *multiSelectionViewController = [[MultiSelectionTableViewController alloc] initWithNibName:@"MultiSelectionTableViewController" bundle:nil];
[self.navigationController pushViewController:multiSelectionViewController animated:YES];
[multiSelectionViewController release];
в MultiSelectionTableViewController
@property(nonatomic,retain) NSMutableArray *items;
@synthesize items;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
NSArray *tmp;
tmp = [NSArray arrayWithObjects: @"Yes", @"No", @"Why not?", @"Depends..", nil];
[self.items addObjectsFromArray:tmp];
}
return self;
}