In my application I use performSelector to call methods. I have three different methods in my application, I want that randomly I assign one of these three methods to perform selector. Here is my code.
[self performSelector:@selector()];
Here is my three methods..
-(void)Act1
{
}
-(void)Act2
{
}
-(void)Act3
{
}
Now I want to assign each time one method randomly to selector. Can any one guide me how I can do this.
This should do it: