我正在尝试在我的iPhone应用程序中嵌入OpenFlow,但我无法弄清楚如何使用导航栏和工具栏在横向视图中调整它。封面太大,效果真的很难看。任何人都可以帮助我吗?
答案 0 :(得分:0)
只需在AFItemView.m上的setImage函数中为帧的值添加乘数
- (void)setImage:(UIImage *)newImage originalImageHeight:(CGFloat)imageHeight reflectionFraction:(CGFloat)reflectionFraction {
float multiplier = 1.5;
[imageView setImage:newImage];
verticalPosition = imageHeight * reflectionFraction / 2;
originalImageHeight = imageHeight;
self.frame = CGRectMake(0, 0, newImage.size.width*multiplier, newImage.size.height*multiplier);
}