UITransitionView and UILayoutContainerView

前端 未结 2 1071
-上瘾入骨i
-上瘾入骨i 2020-12-14 07:04
  1. What is UITransitionView?
  2. What is UILayoutContainerView?
  3. Will I get in trouble for adding subviews to them?

相关标签:
2条回答
  • 2020-12-14 07:53

    Directly doing anything with those views goes against the SDK guidelines of not using undocumented APIs. So, sadly, it doesn't matter much what they do.

    0 讨论(0)
  • 2020-12-14 07:54

    They are both internal views used by Apple and not published in the SDK.

    It's difficult to say exactly what Apple will or won't do however, adding a view to an undocumented view you retrieve from a superView message is not contentious. What you should not do (or be careful if you do do) is make assumptions about the view you are adding to. Specifically its class but even basic things like the fact that it even exists.

    What are you trying to do? There may be a simpler way - like adding your view directly to the app's UIWindow.

    0 讨论(0)
提交回复
热议问题