2

I am using NickLockwood's iCarousel. I am not getting why viewForItemAtIndex is not getting called.(Setting the breakpoint and its not getting hit.)Everything was properly done. datasource and delegate was set to self. iCarousel is alloc in viewDidLoad. Type is also given. What's the problem? Anyone came accross such issue ?

Saheb Singh
  • 555
  • 4
  • 18
  • 1
    have you implemented the protocols in your header? – dibi Apr 21 '14 at 06:36
  • @Daniel yes Everything is done. – Saheb Singh Apr 21 '14 at 06:40
  • best way is to refer the examples given along with the library and compare if you are missing anything? maybe u haven't set in your .h or .m file or if your using storyboards or xib then set it from there – Suhit Patil Apr 21 '14 at 06:43
  • @suhit Everything is properly done. `numberOfItemsInCarousel` is getting called but not `viewForItemAtIndex` – Saheb Singh Apr 21 '14 at 06:46
  • can you put the code in viewForItemAtIndex method – Suhit Patil Apr 21 '14 at 06:52
  • @suhit What's the use of putting the code if it is not getting called.(i have checked by putting break point there and it is not getting hit.) – Saheb Singh Apr 21 '14 at 06:57
  • it's very hard to help when no code is given, best way for you to recheck all your code against the existing examples if you are missing anything – Suhit Patil Apr 21 '14 at 06:59
  • Check numberOfItemsInCarousel return greater than Zero.if numberOfItemsInCarousel return zero means that time viewForItemAtIndex is didn't call. – Mahe Apr 21 '14 at 07:14

1 Answers1

0

Check numberOfItemsInCarousel return greater than Zero.if numberOfItemsInCarousel return zero means that time viewForItemAtIndex is didn't call.

Mahe
  • 98
  • 1
  • 8