To present it with no arrows pass 0 for "permittedArrowDirections.
Up vote 2 down vote favorite 2 share g+ share fb share tw.
I would like to create a new keyboard for the iPad. I have designed a view that has the keys and all the underlying work to fill in a textbox as the user presses the keys, and passes the value back to the calling routine when the user presses the return button. This all works ok.
Now - I want to create this view as a popover. I have the basic operations complete (pops up and is dismissed) But now I need some fine tuning help. Here are my questions... 1) How do I create a popover window centered on the screen without a UIPopoverArrowDirectionAny selection?
2) Ensure the popover window is the size that I created it with in the XIB file (currently, it resizes and removes some of the rightmost size of the window) Thanks tony ipad uipopovercontroller link|improve this question asked Nov 19 '10 at 18:50pithhelmet10210 42% accept rate.
To present it with no arrows pass 0 for "permittedArrowDirections": popOverController presentPopoverFromRect:rect inView:view permittedArrowDirections:0 animated:YES; To center it, pass a 1x1 rect located at the center of your view: CGRect rect = CGRectMake(viewWidth/2, viewHeight/2, 1, 1); popOverController presentPopoverFromRect:rect inView:view permittedArrowDirections:0 animated:YES; Then you have a centered and arrow-free popover. The bit about removing the arrow could break at any time. They didn't provide a UIPopoverArrowDirectionNone option for a reason, they may choose to throw an exception in the future when 0 is passed, or default to something.
Use it at your own risk.
Works for iOS 5. X – Andreas Grauel Mar 22 at 10:29 For iPad in Landscape mode, I had to switch the CGRectMake width and height to get things centered correctly. – Alan Apr 3 at 18:20.
If you are using a UIPopoverController, it will have an arrow. Here are your choices. UIPopoverArrowDirectionAny UIPopoverArrowDirectionUp UIPopoverArrowDirectionDown UIPopoverArrowDirectionLeft UIPopoverArrowDirectionRight As you can see there is no UIPopoverArrowDirectionNone As for the XIB size, in your ViewDidLoad Method of the implementation file, you can set the following.
Self. ContentSizeForViewInPopover = CGSizeMake(320.0, 360.0); You can set the size any way you like for the popover.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.