Skip to content

Instantly share code, notes, and snippets.

@serhatsezer
Created June 24, 2015 16:03
Show Gist options
  • Save serhatsezer/77b44e96f84ec0689202 to your computer and use it in GitHub Desktop.
Save serhatsezer/77b44e96f84ec0689202 to your computer and use it in GitHub Desktop.
added table view controller as a child view controller and returned their views.
- (UIView *)carousel:(iCarousel *)carousel viewForItemAtIndex:(NSInteger)index reusingView:(UIView *)view
{
self.customTableViewController = [[STableViewController alloc] init];
[self addChildViewController:self.customTableViewController];
[self.customTableViewController didMoveToParentViewController:self];
self.customTableViewController.tableView.frame = CGRectMake(0, 0, 200, 200);
return self.customTableViewController.tableView;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment