【发布时间】:2015-08-21 08:32:33
【问题描述】:
我将 iCarousel 视图放在表格视图中并尝试滚动 iCarousel,但问题是它根本无法滚动。
我可以在单元格中看到 iCarousel,如下所示:
我将iCarousel数据源和delegate放在tableView Controller中,创建一个客户函数来设置iCarousel数据源和delegate。
在 CustomTableViewCell 中我只定义了设置委托函数:
- (void) setICarouselDataSourceDelegate: (id<iCarouselDelegate,iCarouselDataSource>)dataSourceDelegate {
self.carousel.dataSource = dataSourceDelegate;
self.carousel.delegate = dataSourceDelegate;
[self.carousel reloadData];
}
在 MainTableView 中,我调用 DataSourceDelegate
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
【问题讨论】:
标签: ios objective-c uitableview cell icarousel