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
Post a Comment