Skip to content

topLayoutGuide 在iOS 11以后被废弃 #56

Description

@wenjing0628

action1Layout.tg_top.equal(self.topLayoutGuide)
这个方法会报一个提醒
'topLayoutGuide' was deprecated in iOS 11.0: Use view.safeAreaLayoutGuide.topAnchor instead of topLayoutGuide.bottomAnchor

填写上 view.safeAreaLayoutGuide.topAnchor 又不行。
总结 :topLayoutGuide 在iOS 11 以后,没有替代方案

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions