iPhone 上实现页面循环滚动
2010-03-10 16:10:00 来源:WEB开发网核心提示:pView.center = centerPt;}NSLog(@"pView.center.x = %f",pView.center.x);}}if(x >maxStart){//末尾位置放到前,其他位置右移NSLog(@"---need right round");for
pView.center = centerPt;
}
NSLog(@"================pView.center.x = %f",pView.center.x);
}
}
if(x >maxStart)
{
//末尾位置放到前,其他位置右移
NSLog(@"-----------------------need right round");
for (i=0; i
{
UIView* pView = [aryOrderd objectAtIndex:i];
if(i==0)
{
CGPoint centerPt = pView.center;
centerPt.x = totalWidth - perWidth/2;
pView.center = centerPt;
}
else
{
CGPoint centerPt = pView.center;
centerPt.x -= perWidth;
pView.center = centerPt;
}
NSLog(@"================pView.center.x = %f",pView.center.x);
if(pView.center.x > totalWidth )
{
int a=2;
a++;
}
}
}
}
[aryOrderd release];
}
}
---------------------
最少支持3个循环滚动。
更多精彩
赞助商链接