iphone - Remove item at index -


in icarousel, use remove items @ index:

nsinteger index2 = carousel2.currentitemindex; [carousel2 removeitematindex:index2 animated:yes]; [items2 removeobjectatindex:index2];  

so image in view of specific index remove.

but don't know how reduce count in array 1 or reduce index count. how it? sorry bad english.

when remove object nsmutablearray length of array automatically reduced 1. can check length of array using

[carousel2 count];  

and

[items2 count]; 

Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -