iPad中的UIPickerView问题

问题描述

| 我再次重复这个问题,因为我找不到任何解决方案。 我的问题是我有一个带有标签和UIPickerView的XIB。我试图在iPad的UIPopOverController中使用这个XIB。但是视图显示不正确。实际上这是我将其添加到弹出窗口的视图。 这是我正在使用的代码
MyPricePickerViewController *priceviewobj=[[MyPricePickerViewController alloc]init];
UINavigationController *navigationcontroller=[[UINavigationController
alloc]initWithRootViewController:priceviewobj];
popover = [[UIPopoverController   
alloc]initWithContentViewController:navigationcontroller];
[popover setPopoverContentSize:CGSizeMake(290,410) animated:YES];
[self.popover presentPopoverFromrect:CGRectMake(10,212,20,30) inView:self.view
permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES];
显示其他没有UIPicker视图的XIB,它们显示正确。当我运行该应用程序时,弹出窗口如下所示 请任何人建议我解决这个问题的方法。     

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)