Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
By watching the codes and reading your explanation I start to get it but I wonder what
Code:
	currentIndex++;
does and means (the ++)

I have to echo ArtOfWarfare's sentiment that you should probably read up on C if you don't know what this operator does (increments the variable by 1).
 
As ArtOfWarfare and mobilehaathi are saying, sounds like it is time to step away from the real coding and learn the fundamentals of Objective-C programming, including its C heritage.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.