You can use iCarousel for the same effect.
from the link below download the sample code for the carousel effect. https://github.com/nicklockwood/iCarousel
There is one example in the No Nib folder.
Open it and change the following code according to your requirement
// in iCarouselExampleViewController.m
In the method below, change the code there to suit your needs. By adding various user interfaces on the main screen, you can design the desired user interface.
In my case, I added one image and a label on this main view.
- (UIView *)carousel:(iCarousel *)carousel viewForItemAtIndex:(NSUInteger)index reusingView:(UIView *)view { UILabel *label = nil; UIImageView *imageLogo=nil; UIImageView *imageBack=nil; //create new view if no view is available for recycling if (view == nil) { view = [[[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"page1" ofType:@"png"]]] autorelease]; imageBack=[[[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"3" ofType:@"png"]]] autorelease]; imageBack.frame=CGRectMake(70, 70,388, 49); [view addSubview:imageBack]; label = [[UILabel alloc]initWithFrame:CGRectMake(80, 78, 380, 30)]; label.backgroundColor=[UIColor darkGrayColor]; label.font = [label.font fontWithSize:20]; label.backgroundColor=[UIColor clearColor]; [view addSubview:label]; imageLogo=[[[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Map" ofType:@"png"]]] autorelease]; imageLogo.frame=CGRectMake(25, 70, 50, 49); [view addSubview:imageLogo]; } else { label = [[view subviews] lastObject]; } label.text = @"Some text"; label.frame=CGRectMake(label.frame.origin.x, label.frame.origin.y, label.frame.size.width,label.frame.size.height); return view; } }
source share