What is use of performSelector in iOS

前端 未结 5 1149
不知归路
不知归路 2021-02-15 23:55

What is the role of performSelector?

Comparing:

[self btnClicked];

and

[self performSelector:@selector(btn         


        
5条回答
  •  不思量自难忘°
    2021-02-16 00:34

    performSelector calls a method that has been declared and implemented in the class. It is used when you need to attach an action in code to a event.

提交回复
热议问题