Search code examples
iosicarousel

icarousel viewForItemAtIndex is not getting called?


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 ?


Solution

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