NSArray displays next element with buttonPressed method -


i have array of strings , want access next element in array every time press button in app, don't want have duplicate string pop up, want go through whole array, , start on after reach end of array... each button press show next element in array..my buttonpressed method in viewdidload method. ty

set index = 0  on button press: show(strings[index]) increment index if index equal strings.length set index = 0 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -