Create UITableView in CellForRowAtIndexPath and then create the UIScrollView which you can add to UITableView and attach your UIPageControl on UIScrollView .
Up vote 0 down vote favorite share g+ share fb share tw.
I want a page control(UIPageControl) on a view (UIViewController) with table view(UITable) on each page. Is it possible? If YES then HOW?
Objective-c ios uitableview uiscrollview uipagecontrol link|improve this question asked Dec 15 '11 at 16:29Filipe Mota587 91% accept rate.
Create UITableView in CellForRowAtIndexPath and then create the UIScrollView which you can add to UITableView and attach your UIPageControl on UIScrollView.
– Filipe Mota Dec 15 '11 at 17:49 alrite. So can you explain me more how do you want it? U need a tableview in uipagecontrol.
I guess you don't need it if you have UIScrollView to work around that part. – Change Dec 15 '11 at 17:54 Sure, maybe you can think of other soluction. I have 3 tables, like Favorites, History and Notifications.
I have a UIView with others things (like buttons and searchBar) and in the bottom half of the UIView I have a UITableView. The UITableView shows the table of Favorites. I want with swipes to change between tables.
I thought about UIPageControl and UIScrollView but maybe there is other alternatives... – Filipe Mota Dec 15 '11 at 18:01 Alrite. So have you created UITableView Favorites rite. So now add UIScrollView of the width and height of the tableView and attach UIPageControl to it.
In code: scrollView = UIScrollView alloc initWithFrame:CGRectMake(0, 0, frame.size. Width, frame.size. Height); cell contentView addSubView: scrollview; pageControl = UIPageControl alloc initWithFrame:CGRectMake(0, 50, frame.size.
Width, frame.size. Height); pageControl setNumberOfPages:4; cell contentView addSubview:pageControl;Ignore my coding since not tried on xcode. – Change Dec 15 '11 at 18:13 I've got it!
:) Thank you very much! – Filipe Mota Dec 15 '11 at 18:59.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.