I'm trying to use the page control feature along with UIScrollView to display a set of images on my IOS app, i've seen some tutorials but they all show how to change colors, how can i have some images loaded and use page control to go through them?
Asked
Active
Viewed 1,409 times
2 Answers
1
-(void)loadScrollViewWithPage:(int)page;
{
UIImageView *img=[[UIImageView alloc]initWithFrame:CGRectMake(scrollView.frame.size.width*page, 200, scrollView.frame.size.width, 100)];
img.image=[UIImage imageNamed:[viewControllers objectAtIndex:page]];
[scrollView addSubview:controller.view];
}
viewControllers
stores the name of the image that you have taken.

nhahtdh
- 55,989
- 15
- 126
- 162

Abhilash Reddy kallepu
- 545
- 3
- 10
-
Nice, but how do i add the images names...sorry i'm kind of new to all this – XpApp Sep 05 '12 at 10:51
-
soon ill post a tutorial on that in a couple of days then ill provide u the link for the Tutorial. – Abhilash Reddy kallepu Sep 06 '12 at 05:36
-
[http://abhilashreddykallepu.wordpress.com/2012/09/07/scrolling-images-on-a-scrollview/] – Abhilash Reddy kallepu Sep 07 '12 at 12:47
-
O l et me know please as soon as it's up ok? – XpApp Sep 10 '12 at 11:43
0
Using PageControl, you can navigate through views, so you can put imageviews on the view and set the images on imageviews.

parilogic
- 1,147
- 9
- 26
-
but how do you navigate between views the example i've seen they just use background colors – XpApp Jul 12 '12 at 12:16