iPhone Modal View Smaller that the screen

后端 未结 5 1048
一生所求
一生所求 2021-01-31 06:23

I\'m trying to do something that shouldn\'t be that complicated, but I can\'t figure it out. I have a UIViewController displaying a UITableView. I want to present a context menu

5条回答
  •  后悔当初
    2021-01-31 06:57

    Again, if you really want to do this, instead of adding a transparent "holding" view, since this pop-up is essentially modal, I would make it a subview directly of the window.

    You might want to put in a transparent black shield behind it to prevent touches on the background and focus input on the popup.

    But seriously, consider either popping a controller on the stack or using that alert view. Unless you've hired a $$ designer, it's probably not going to look appropriate on the iPhone.

提交回复
热议问题