Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIPopoverController without arrows?

I would like to know to make an UIPopoverController without arrows In fact I would like to simulate something like this: Screenshot of the set-passcode screen from the iPad's System Preferences

See that

  • There is no arrows

  • There is a title that is somehow inside of a expanded top border of the UIPopoverController and not inside of it like in the normal UIPopoverController.

I assume this is not really an UIPopoverController object but I would appreciate advices on how can I make the same effect (using CoreGraphics? -> specially the translucent degrade effect of the 3D outstanding border) and/or links to some sources if anyone has done this before.

Thanks in advance.

Ignacio

EDIT:

I am still looking for this stuff and realized that even in third party apps is being used an example is: twitterrific for iPad as seen in this picture. Anyone please? Putting the title inside the popovercontroller is just ugly. alt text

like image 390
nacho4d Avatar asked Oct 02 '10 09:10

nacho4d


1 Answers

The below method works fine for me (include iOS7)

 [popoverController presentPopoverFromRect:CGRectMake(0, 0, 20, 20)
                                    inView:self.view 
                  permittedArrowDirections:NULL 
                                  animated:YES];
like image 125
Raj Avatar answered Sep 24 '22 08:09

Raj