Hello,
I m looking for a simple code that will display different text every time i clicked the button. Something like a jokes app.
What i have right now is a switch statement which is fine but how do i make it NOT random?
Example:
- (IBAction)button:(id)sender {
int text = arc4random() % 3;
switch (text) {
case 0:
[login to view URL] = @"Hello world";
break;
case 1:
[login to view URL] =@"Is this the right way of doing it" ;
break;
case 2:
[login to view URL] = @"looking for someone to help me out with this code";
break;
default:
break;
}
Also what would be the code do display previous text like having back button to return to previous text.
Thanks
Hi,
I come across your post regarding Beginner needs a simple code.
I feel that what we do might be a great fit for you. Please check PMB for further details (examples, etc).
Looking forward to hear from you soon,
DB BEST TECHNOLOGIES