有什么方法可以像图片一样进行转换吗?
http://i.imgur.com/vOMqZ1e.png
编辑:
现在,对于转换,我使用下一个代码:
- (CATransform3D)carousel:(iCarousel *)carousel itemTransformForOffset:(CGFloat)offset baseTransform:(CATransform3D)transform {
transform.m34 = - 0.0004;
CGFloat clampedOffset = fmaxf(-1.0f, fminf(1.0f, offset));
CGFloat x = (clampedOffset * 0.5f * _tilt + offset * _spacing) * kWidthView;
CGFloat z = fabsf(clampedOffset) * - kWidthView * 0.5f;
transform = CATransform3DTranslate(transform, x, 0.0f, z);
return CATransform3DRotate(transform, -clampedOffset * M_PI_2 * _tilt, 0.0f, 1.0f, 0.0f);
}