I'm creating an iPad application which needs a UIPopoverController like this one (I mean, with buttons):

I tried using a UIViewController but it gives me an enormous popup with a white background.
Can anyone explain me how to make one? I cannot find any documentation or example code. Thanks.