UIView did appear?

后端 未结 5 1734
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 00:25

I\'m wondering, is there a way to get a delegate or something, when a particular UIView has been shown on the screen ?

5条回答
  •  孤街浪徒
    2021-02-05 01:11

    If you manage your logic directly inside the UIView, use:

    - didMoveToSuperview
    

    If you manage your logic inside a UIViewController, use :

    - viewDidAppear:(BOOL)animated
    

提交回复
热议问题