What is the “right” way to handle orientation changes in iOS 8?

前端 未结 4 665
感情败类
感情败类 2020-11-29 16:06

Can someone please tell me the \"right\" or \"best\" approach to working with portrait and landscape interface orientations in iOS 8? It seems that all the functions I want

4条回答
  •  無奈伤痛
    2020-11-29 16:12

    From a UI perspective, I believe that using Size Classes are Apple's recommended approach for handling interfaces in different orientations, sizes and scales.

    See the section: Traits Describe the Size Class and Scale of an Interface here: https://developer.apple.com/library/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS8.html

    "iOS 8 adds new features that make dealing with screen size and orientation much more versatile."

    This one is a good article as well: https://carpeaqua.com/thinking-in-terms-of-ios-8-size-classes/

    EDIT Updated Link: https://carpeaqua.com/2014/06/14/thinking-in-terms-of-ios-8-size-classes/ (Credit: Koen)

提交回复
热议问题