开发者

Showing safari browsing webpages history animation in iphone

i need to show the images from left to right on my view controller like we scroll web pages in safari browser...ha开发者_StackOverflow社区s anyone developed this thing... Thanks,


this might help you..

 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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜