开发者

ipad setting a uiview controller

开发者 https://www.devze.com 2023-01-14 07:28 出处:网络
I have this code arrangeListViewController = [[[ArrangeListViewController alloc] init] autorelease]; arrangeList = [[UITableView alloc] initWithFrame:CGRectMake(attributesPadding, y, popoverWidth -

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

精彩评论

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

关注公众号