objective c - Decrease indexPath.row? -


i have code below use catch item inside array:

int value = (int)indexpath.row; value--;  titlelabel.text = textlabelssection0[value]; 

considering array textlabelssection0 has 8 elements , variable value store number 3, problem variable value not store number 3, stores number 18446744073709551615, causing error:

index 18446744073709551615 beyond bounds [0 .. 8]' 

how can solve problem?


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -