Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片放大后回到原大小,frame会改变 #15

Open
CaliosD opened this issue Feb 28, 2016 · 0 comments
Open

图片放大后回到原大小,frame会改变 #15

CaliosD opened this issue Feb 28, 2016 · 0 comments

Comments

@CaliosD
Copy link

CaliosD commented Feb 28, 2016

我给自己的一个imageview中添加了点击事件,代码如下:

    _imageViewer = [[XHImageViewer alloc] init];
    _imageViewer.disableTouchDismiss = NO;
    [_imageViewer showWithImageViews:@[_imgView] selectedView:(UIImageView *)tap.view]; 

运行之后发现,点击后图片正常放大,但再次点击后,图片并不能回到初始位置。
点击前:

(lldb) po _imgView
<UIImageView: 0x134d4b3e0; frame = (12 60; 150 150); opaque = NO; gestureRecognizers = <NSArray: 0x174250b30>; layer = <CALayer: 0x174425320>>

点击后:

(lldb) po _imgView
<UIImageView: 0x134d4b3e0; frame = (0 0; 150 150); opaque = NO; gestureRecognizers = <NSArray: 0x174250b30>; layer = <CALayer: 0x174425320>>

请问,是什么地方我设置的不对么?谢谢~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant