开发者

paging (horizontal swiping) through multiple uitableviews

开发者 https://www.devze.com 2023-02-10 17:27 出处:网络
I am trying to put a number tables in uiscrollview such that it can swipe through each (paging). This is done on nicely on TweetDeck.

I am trying to put a number tables in uiscrollview such that it can swipe through each (paging). This is done on nicely on TweetDeck.

I'm using https://github.com/andreyvit/SoloComponents-iOS/tree/master/ATPagingView

However im struggling to figure out how to do it without leaking memory.

- (UIView *)viewForPageInPagingView:(ATPagingView *)pagingView atIn开发者_JAVA技巧dex:(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];

}

Does anyone have any suggestions as to how I should modify ATPagingView to accomodate for UIViewControllers instead of UIViews? Or any other examples?

0

精彩评论

暂无评论...
验证码 换一张
取 消