I have this code
arrangeListViewController = [[[ArrangeListViewController alloc] init] autorelease];
arrangeList = [[UITableView alloc] initWithFrame:CGRectMake(attributesPadding, y, popoverWidth - 2* attributesPadding, popoverHeight - y - attributesPadding) style:UITableViewStylePlain];
arrangeList.layer.cornerRadius =开发者_如何转开发 15;
So i add this "arrangeList to my view and i can see it. But how do i go about assigning the view controller for "arrangeList'?
Not too sure what you mean mate... if you want to add the table view to the arrangeListViewController
then do this:
[arrangeListViewController.view addSubview:arrangeList];
[self.navigationController pushViewController:arrangeListViewController animated:YES];
精彩评论