【发布时间】:2014-01-20 19:47:25
【问题描述】:
我在UITableViewCell 中有一个UIImageView 并希望将其扩展为全屏,我已经设置了我的UIGestureRecognizer 并使用此代码来扩展框架:
[UIView animateWithDuration:1.0 animations:^{
[self.ImageView setFrame:[[UIScreen mainScreen] applicationFrame]];
}];
但是UIImageView 只会扩展以填充UITableViewCell 而不会填充全屏。
任何帮助将不胜感激。
【问题讨论】:
-
不要使用相同的 imageView,因为单元格 clipsToBounds 设置为 Yes,因此单元格边界外的视图将不可见。检查我的答案以实现您的功能。
标签: ios uitableview uiimageview