开发者

UIPickerView issue in iPad

开发者 https://www.devze.com 2023-03-08 17:11 出处:网络
I am repeating this question again because i couldn\'t find any solution. My problem i have an XIB where i have labels and a UIPickerView.I am trying to use this XIB inside a UIPopOverController in i

I am repeating this question again because i couldn't find any solution.

My problem i have an XIB where i have labels and a UIPickerView.I am trying to use this XIB inside a UIPopOverController in iPad.But the view is not rendered properly.Actually开发者_JS百科 this is the view which i am adding it to the popover window.

UIPickerView issue in iPad

This is the code which i am using

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

I display other XIBs which dont have a UIPicker view and they are displayed properly.When i run the application the popover is rendered as follows

UIPickerView issue in iPad

Please anybody suggest me a possible solution to this problem.Thanks in advance

0

精彩评论

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