iPhone 上实现页面循环滚动
2010-03-10 16:10:00 来源:WEB开发网{
// NSLog(@"error calucate of page index");
int a=0;a=1/a;
}
// NSLog(@"排序中 把pView=%d插入 %d 位置",pView, pageIndex-1);
[aryOrderd replaceObjectAtIndex:(pageIndex-1) withObject:pView];
}
}
[aryTemp release];
//排完后开始整体挪动位置
if(x < minStart)
{
NSLog(@"-----------------------need left round");
//头位置放到最后,其他位置左移
for (i=0; i
{
UIView* pView = [aryOrderd objectAtIndex:i];
if(i==(aryOrdredSize-1))
{
CGPoint centerPt = pView.center;
centerPt.x = 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(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];
- ››iPhone应用帮助残障儿童看图说话
- ››iPhone实用工具AppBox Pro使用教程大揭秘
- ››iphone4省电方法
- ››iphone 获取地址的详细信息
- ››iPhone 库的基本内存管理策略
- ››iPhone加密文字亲手做 私密信息有保障
- ››iphone 根据经纬度坐标取详细地址(包括国,省,市...
- ››iphone/ipad ios cocoa object-c 近期苹果UI部分小...
- ››iphone中如何进行多线程编程
- ››iPhone OS SDK的这些事[安装、下载、版本、实例、...
- ››iPhone ObjectC的NSAutoreleasePool
- ››iPhone 判断设备是在Portrait(纵向)还是(Landscap...
更多精彩
赞助商链接