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:
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}?
精彩评论