这个效果的实现是用UIScrollView。核心代码如下: NSArray *myImages = [NSArray arrayWithObjects:[UIImage imageNamed:@"1.jpg"],nil]; UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 60, 320, imageSizeHeight)]; for (int i = 0; i <[myImages count]; i++) { UIImageView *imageView = [[UIImageView alloc]initWithImage:[myImages objectAtIndex:i]]; imageView.frame = CGRectMake(imageSizeWidth*i, 0, imageSizeWidth, imageSizeHeight); imageView.contentMode = UIViewContentModeScaleAspectFit; [scrollView addSubview:imageView]; } scrollView.contentSize = CGSizeMake(imageSizeWidth*[myImages count],imageSizeHeight); // scrollView.pagingEnabled = YES; scrollView.showsVerticalScrollIndicator = NO; scrollView.showsHorizontalScrollIndicator = NO; scrollView.userInteractionEnabled = YES;