显示Safari浏览器浏览网页在iPhone

显示Safari浏览器浏览网页在iPhone

问题描述:

我需要显示图片从左至右我的视图控制器上像我们在滚动的Safari浏览器的网页历史记录动画......有没有人开发了这个事情... 谢谢,显示Safari浏览器浏览网页在iPhone

这可能对你有帮助..

UIScrollView * scrollView=[[UIScrollView alloc]init]; 

for(int i=0;i<imageCount;i++) 
{ 
UIImageView *tempView=[[UIImageViewalloc]initWithFrame:CGRectMake((i*60),05,60,70)]; 
tempView.image=[UIImage imageNamed:@"images.jpg"]; 
[scrollView addSubview:tempView]; 
} 

    scrollView.frame=CGRectMake(0, 20, 320, 80); 
scrollView.contentSize=CGSizeMake(60*imageCount,70); 
    scrollView.delegate=self; 
    [self.view addSubview:scrollView];