ILParabolicImageView 是一个简单的库,您可以通过手机移动来添加图像的动态效果
使用 cocoapods 进行安装
pod 'ILParabolicImageView'
CGRect frame;
frame.origin.x = 0;
frame.size.width = self.view.frame.size.width;
frame.size.height = self.view.frame.size.height;
frame.origin.y = 0;
ILParabolicBackgroundImageView *imageView = [[ILParabolicBackgroundImageView alloc] initWithFrame:frame];
imageView.image = self.backgroundImages[i];
[self.view addSubview:imageView];
Abraham Kuri
代码和文档版权为 2013-2014 Icalia Labs。代码在 MIT 许可证下发布。