我喜欢给 UIPopoverController 添加标题和按钮。使用我当前的代码
- (IBAction)listOfDocumnetsInSections:(id)sender {
UIViewController *listViewController = [[UIViewController alloc] init];
self.lsitOfDocument = [[UITableView alloc] initWithFrame:CGRectMake(0, 10, 300, [self countRecordsInEntity] * 43) style:UITableViewStylePlain];
self.lsitOfDocument.dataSource = self;
self.lsitOfDocument.delegate = self;
[listViewController.view addSubview:self.lsitOfDocument];
self.listOfSectionsPopOver = [[UIPopoverController alloc] initWithContentViewController:listViewController];
[self.listOfSectionsPopOver setPopoverContentSize:CGSizeMake(300, [self countRecordsInEntity] * 43)];
[self.listOfSectionsPopOver presentPopoverFromRect:CGRectMake(700, 35, 10, 10)
inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny
animated:YES];}
看起来像
但我喜欢像下面这样改变用户界面
有什么建议吗?