2

I'm trying to implement an iCarousel within a detailedView using a storyboard.

LocationDetailViewController.h

@interface LocationDetailViewController : UIViewController <iCarouselDataSource, iCarouselDelegate>

@property (nonatomic, strong) IBOutlet iCarousel *carousel;

Storyboard:

The iCarousel is a View

dataSource -> View

delegate -> View

carouel -> Location Detai...

When I click from the tableview to the detail view where the carousel is located I get an error, before the .m is called (tested with NSLOG).

I receive this error:

-[UIView numberOfItemsInCarousel:]: unrecognized selector sent to instance 0xb3134c0
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView numberOfItemsInCarousel:]: unrecognized selector sent to instance 0xb3134c0'

Any Ideas on how to fix this?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Marcus
  • 9,032
  • 11
  • 45
  • 84

1 Answers1

1

You should implement the icarousel delegate methods.

- (NSUInteger)numberOfItemsInCarousel:(iCarousel *)carousel
{
     return [array count];
}

Refer this,

http://www.theappguruz.com/tutorial/how-to-use-icarousel-view-controller-in-ios/

Hope it helps.

Iphonenew
  • 299
  • 2
  • 11