UIView did appear?

后端 未结 5 1735
没有蜡笔的小新
没有蜡笔的小新 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:06

    If you are managing the UIView via a UIViewController, then you can use the -viewDidAppear: method:

    - (void) viewDidAppear:(BOOL) animated {
       //do stuff...
       [super viewDidAppear:animated];
    }
    

提交回复
热议问题