What is difference between UIModalTransitionStyle and UIModalPresentationStyle ?

For UIViewController, we have UIModalTransitionStyle and UIModalPresentationStyle enter link description here

Question is what is the difference of them ?

up vote1down voteaccepted

UIModalTransitionStyle is used to specify how the modal form transitions into view. For example, it can come in vertically, flip horizontal, or do a partial curl.

UIModalPresentationStyle is used to specified whether you want the modal form to be full screen (basically what iPhone uses) or otherwise (therefore only makes sense for iPad) as a page sheet (full height, width is the size of the portrait mode screen width), a form sheet (partial width and partial height) or current context (i.e. what the parent container uses).

相关文章:

  • 2021-08-11
  • 2021-12-03
  • 2021-12-05
  • 2021-12-17
  • 2021-09-19
  • 2021-09-13
  • 2021-08-25
  • 2021-11-06
猜你喜欢
  • 2022-01-04
  • 2020-03-19
  • 2021-09-17
  • 2022-02-26
  • 2021-07-22
  • 2021-08-28
  • 2021-12-12
相关资源
相似解决方案