开发者

ipad setting a uiview controller

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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜