0
我需要顯示圖片從左至右我的視圖控制器上像我們在滾動的Safari瀏覽器的網頁歷史記錄動畫......有沒有人開發了這個事情... 謝謝,顯示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];