开发者

Customizing image view in openFlow Library

开发者 https://www.devze.com 2023-03-04 06:57 出处:网络
I have to use openFlow library in my iphone project.If anyone used the openFlow library knows that images comes in it.I want to ask can is it possible to customize the the imageview in which imag开发者

I have to use openFlow library in my iphone project.If anyone used the openFlow library knows that images comes in it.I want to ask can is it possible to customize the the imageview in which imag开发者_如何学运维es come as I want to add a share and + button which expands and shrink the image which are coming in the flow.

Any suggestions would be appreciated


Your problem is solved? if not then you can use a one tricky way. on the home screen where you are showing Cover Flow add a uibutton and set frame according to your cover flow image view. and also set the event of this.

May be it solved your problem.

Thx


In "AFItemview.m" method "initWithFrame" where you are adding image view add one button like this :

- (id)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.opaque = YES;
        self.backgroundColor = NULL;
        verticalPosition = 0;
        horizontalPosition = 0;

        // Image View
        imageView = [[UIImageView alloc] initWithFrame:frame];
        imageView.opaque = YES;
        [self addSubview:imageView];

        UIButton *Btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
        Btn.frame = CGRectMake(10,10,50,50);
        [Btn setTitle:@"Button" forState:UIControlStateNormal];
        [self addSubview:Btn];

    }

    return self;
}

Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消