Performselector
-(Void) specify mselector :( SEL) aselector withobject :( ID) anargument afterdelay :( nstimeinterval) delay;
The above method can be used flexibly and conveniently. You only need to tell him what method he will call and how long he will be called.
For example:
[Self defined mselector: @ selector (stoploading) withobject: Nil afterdelay: 2.0]
This method indicates that the stoploading method will be called after 2 seconds.
Share:
Performselector
-(Void) specify mselector :( SEL) aselector withobject :( ID) anargument afterdelay :( nstimeinterval) delay;
The above method can be used flexibly and conveniently. You only need to tell him what method he will call and how long he will be called.
For example:
[Self defined mselector: @ selector (stoploading) withobject: Nil afterdelay: 2.0]
This method indicates that the stoploading method will be called after 2 seconds.