0

I would like to segue to a view controller rather like what you see in that app store for iPad that pops up when you tap an app. It's rather like a popover, but it's not attached to a button. Right now I'm using a popover attached to a hidden button, but I don't like it because it has a pointer pointing to the hidden button. I feel like this is something obvious to want, but I can't find a predefined segue to do this. Do I have to write my own?

The VC that I want to load this way is also called elsewhere using a popover from an actual button, so I want to retain that functionality.

Scott Berrevoets
  • 16,921
  • 6
  • 59
  • 80
Victor Engel
  • 2,037
  • 2
  • 25
  • 46

2 Answers2

1

That looks like a view controller presented modally using the UIModalPresentationFormSheet presentation style.

rickster
  • 124,678
  • 26
  • 272
  • 326
  • Hmm. I tried that, and you may be right. I rejected that style for some reason that I can't remember. I think I'll revisit it. – Victor Engel Jul 13 '13 at 02:14
  • Ah, I remember now. It was the problem of sizing. [This post](http://stackoverflow.com/questions/4266581/uimodalpresentationformsheet-resizing-view) seems to answer that question. – Victor Engel Jul 13 '13 at 02:19
  • never mind. That's not why I rejected it. I rejected it because I don't want a dismiss button. It should be dismissed by tapping an area next to the presented VC, just like with a popover. – Victor Engel Jul 13 '13 at 02:32
0

You can set the popoverBackgroundViewClass to customise the popover display and remove the arrow. Your class needs to be a subclass of UIPopoverBackgroundView.

Wain
  • 118,658
  • 15
  • 128
  • 151