Custom size for Modal View loaded with Form Sheet presentation

前端 未结 10 863
予麋鹿
予麋鹿 2021-02-01 12:44

I\'m trying to load a UIViewController in iPad with Form Sheet presentation. The problem is the size of this new view, i put the size values in the IBuilder but the modal view t

10条回答
  •  忘了有多久
    2021-02-01 13:20

    If you are using a view in XIB that is set as a modally presented view for a view controller. A very easy way to fix this is to simply change the Size Metrics to Freeform (See Figure 1.0) and resize the view to whatever you want it to be. The view will appear with these metrics when loaded modaly.

    Setting Preferred Content Size didn't help in my case but this fixed my issue. It

    Figure 1.0:

提交回复
热议问题