如何在OpenFlow中调整封面图像的大小

时间:2022-01-11 20:30:39

I'm trying to embed OpenFlow in my iPhone app, but I can't figure out how I can resize it in a landscape view with a navigation bar and a toolbar. The covers are too big and the effect is really ugly. Can anyone help me?

我正在尝试在我的iPhone应用程序中嵌入OpenFlow,但我无法弄清楚如何使用导航栏和工具栏在横向视图中调整它。封面太大,效果真的很难看。谁能帮我?

1 个解决方案

#1


0  

Just add a multiplier to the values of the frame at the setImage function on AFItemView.m

只需在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);
}

#1


0  

Just add a multiplier to the values of the frame at the setImage function on AFItemView.m

只需在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);
}