self.view.backgroundColor = [UIColor redColor]; UIScrollView *scroll = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)]; scroll.pagingEnabled = YES; = 3; for (int i = 0; i < numberOfViews; i++) { CGFloat yOrigin = i * self.view.frame.size.height; UIView *awesomeView = [[UIView alloc] initWithFrame:CGRectMake(0,yOrigin, self.view.frame.size.width, self.view.frame.size.height)]; awesomeView.backgroundColor = [UIColor colorWithRed:0.5/i green:0.5 blue:0.5 alpha:1]; [scroll addSubview:awesomeView]; // [awesomeView release]; } scroll.contentSize = CGSizeMake(self.view.frame.size.width , self.view.frame.size.height* numberOfViews); [self.view addSubview:scroll]; Post navigation PowenKo, 070-2,UIScrollView demo,book Bookshelf