通过多个uitableviews进行分页(水平滑动)

时间:2011-02-16 17:41:48

标签: uiscrollview paging uitableview

我正在尝试在uiscrollview中放置一个数字表,以便它可以滑过每个(分页)。这很好地在TweetDeck上完成。

我正在使用https://github.com/andreyvit/SoloComponents-iOS/tree/master/ATPagingView

然而,我在努力弄清楚如何在不泄露记忆的情况下做到这一点。

- (UIView *)viewForPageInPagingView:(ATPagingView *)pagingView atIndex:(NSInteger)index {

   myTableViewController *t = [[servicesController alloc] init]; 
   t.delegate = self.navigationController; //such that the tableview can call nav controller
   t.info = [array objectAtIndex:index]; //Data that is different for every page
   return [t.view autorelease];

}

有没有人对如何修改ATPagingView以适应UIViewControllers而不是UIViews有任何建议?还是其他任何例子?

0 个答案:

没有答案