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,它们显示正确。当我运行该应用程序时,弹出窗口如下所示 请任何人建议我解决这个问题的方法。     
已邀请:

要回复问题请先登录注册