Sedang Disiapkan

Beginner needs a simple code

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:

[url removed, login to view] = @"Hello world";

break;

case 1:

[url removed, login to view] =@"Is this the right way of doing it" ;

break;

case 2:

[url removed, login to view] = @"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

Kemahiran: iPhone, Mobile App Development

Lihat lebih lanjut: beginner needs simple code, world code, how code, code that, jokes, hello world, for beginner, beginner, app sender, jokes example, case phone, text sender, random phone, simple app code example, app random iphone, app iphone random, break display app, iphone random app, random app iphone, iphone label, example jokes, iphone world, display break iphone app, mobile case, break iphone

Tentang Majikan:
( 3 ulasan ) Clearwater, Serbia

ID Projek: #1586105

Dianugerahkan kepada:

EMCALLISTER

Hi please see PM.

$25 USD / jam
(61 Ulasan)
6.9

11 pekerja bebas membida secara purata $20/jam untuk pekerjaan ini

hanzhen18

Hello I have some experiences such teaching jobs.

$20 USD / jam
(80 Ulasan)
7.7
masIndia

Hello, thanks for project. Please check PM for more details and our previous work portfolio.

$25 USD / jam
(31 Ulasan)
7.2
impressolbdm

Hello, Greetings, Our Company IMPRESSOL based out of INDIA Bangalore , having experienced developers having over 5 years of experience in Apple technologies including iPhone application development, Co Lagi

$20 USD / jam
(3 Ulasan)
5.5
kbest

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 Lagi

$30 USD / jam
(3 Ulasan)
5.2
maxzou

Hi, I give a solution in the private message. Kind regards, Max

$25 USD / jam
(2 Ulasan)
3.8
justgig8

Hello boss I'd love to help you out on these minor tasks. Thanks

$15 USD / jam
(4 Ulasan)
3.7
vikramchowdary1

PLease Check PM

$15 USD / jam
(6 Ulasan)
3.8
LeoLooper

Hello sir, This project is easy. I can help you remote to your computer, so you can be sure that thing is going right.

$15 USD / jam
(1 Ulasan)
2.8
sureshjagnani

HI.. Please See PM.

$15 USD / jam
(0 Ulasan)
0.0
secretout

Hello, it's very easy job for me.

$15 USD / jam
(0 Ulasan)
0.0
niravlimbasiya

Hi, I am Nirav, Team Lead and Architect in iphone and Android. I have been working in this technology since last 2 Years. Please check my PM to you for more details. Thanks, Nirav

$15 USD / jam
(0 Ulasan)
0.0