ko1o / PYPhotoBrowser

An easy way to browse photo(image) for iOS.
MIT License
2.01k stars 416 forks source link

frameToWindow 怎么拿到最后显示的view的frame #132

Open dabu5566 opened 7 years ago

dabu5566 commented 7 years ago

@property (nonatomic, assign) CGRect frameToWindow; 这个属性: 怎么拿到最后显示的view的frame

ko1o commented 7 years ago

@dabu5566 这个是取决与你的设定。 你设置哪就缩小到到哪再消失

dabu5566 commented 7 years ago

CGRect frameForm = [photoBroseView convertRect:recognizer.view.frame fromView:self]; photoBroseView.frameFormWindow = frameForm; frameToWindow 怎么拿到浏览的是哪张图片

ko1o commented 7 years ago

成为代理就通过index可以获取到: /**

原始邮件 发件人:dabu5566notifications@github.com 收件人:iphone5solo/PYPhotoBrowserPYPhotoBrowser@noreply.github.com 抄送:CoderKo1o499491531@qq.com; Commentcomment@noreply.github.com 发送时间:2017年10月19日(周四) 16:24 主题:Re: [iphone5solo/PYPhotoBrowser] frameToWindow 怎么拿到最后显示的view的frame (#132)

CGRect frameForm = [photoBroseView convertRect:recognizer.view.frame fromView:self]; photoBroseView.frameFormWindow = frameForm; frameToWindow 怎么拿到浏览的是哪张图片 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

dabu5566 commented 7 years ago

你看我还要设置代理,调用方法才能拿到即将消失的图片控件

跟设置这个frameFormWindow属性都分开了 CGRect frameForm = [photoBroseView convertRect:recognizer.view.frame fromView:self]; photoBroseView.frameFormWindow = frameForm;

ko1o commented 7 years ago

加我QQ 499491531 备注:#132

原始邮件 发件人:dabu5566notifications@github.com 收件人:iphone5solo/PYPhotoBrowserPYPhotoBrowser@noreply.github.com 抄送:CoderKo1o499491531@qq.com; Commentcomment@noreply.github.com 发送时间:2017年10月19日(周四) 16:41 主题:Re: [iphone5solo/PYPhotoBrowser] frameToWindow 怎么拿到最后显示的view的frame (#132)

你看我还要设置代理,调用方法才能拿到即将消失的图片控件 (void)photoBrowseView:(PYPhotoBrowseView )photoBrowseView willHiddenWithImages:(NSArray )images index:(NSInteger)index { UIImageView *imageView = self.imageViews[index]; CGRect frameTo = [photoBrowseView convertRect:imageView.frame fromView:self]; photoBrowseView.frameToWindow = frameTo; } 跟设置这个frameFormWindow属性都分开了 CGRect frameForm = [photoBroseView convertRect:recognizer.view.frame fromView:self]; photoBroseView.frameFormWindow = frameForm; — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.