Я новичок в разработке приложений для iOS и самой Objective C, поэтому у меня есть очень простой вопрос.
В настоящее время у меня есть следующий метод, который вызывается из нажатия кнопки ToolBar. Этот метод предназначен для создания представления таблицы в переменной frame fr.
- (IBAction)addGolfer:(id)sender {
CGRect fr = CGRectMake(101, 45, 100, 416);
UITableView *tabrleView = [[UITableView alloc]
initWithFrame:fr
style:UITableViewStylePlain];
tabrleView.autoresizingMask =
UIViewAutoresizingFlexibleHeight |
UIViewAutoresizingFlexibleWidth;
tabrleView.delegate = self;
tabrleView.dataSource = self;
[tabrleView reloadData];
self.view = tableView;
}
Результат вызова этого метода не является тем, что я ожидаю. Вместо создания представления таблицы в фрейме "fr" вид таблицы заполняет весь экран.
Снова я совершенно новый и ценю любые ответы и любые предложения. Спасибо!