开发者

having trouble making popover view the correct size

开发者 https://www.devze.com 2023-02-15 16:02 出处:网络
I am displaying a popover when user clicks into text field. The popover view has a picker view but I am having some trouble getting rid of some white space in the view popover .

I am displaying a popover when user clicks into text field. The popover view has a picker view but I am having some trouble getting rid of some white space in the view popover . This is what it looks like:

having trouble making popover view the correct size

I think my popover size might be fixed because I display it like this when user begins editing textfield:

[popoverController presentPopoverFromRect:textField.frame inView:self.view   permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; 

Any ideas on how to make the popover view smaller or for everything to fit in nicely? I also played 开发者_开发知识库around with this line of code but no success:

self.contentSizeForViewInPopover=CGSizeMake(360.0,220.0);

thanks in advance.


Are you sure you're setting the picker's origin to {0, 0}?

0

精彩评论

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