IOS7 中 UITableViewCell 删除视图不还原
2014-02-08 09:24
267 查看
- (void)layoutSubviews
{
[super layoutSubviews];
for (UIView *subview in self.subviews) {
self.backgroundView.frame = CGRectMake(0, 0, self.backgroundView.frame.size.width, self.backgroundView.frame.size.height);
for (UIView *subview2 in subview.subviews) {
if ([NSStringFromClass([subview2 class]) isEqualToString:@"UITableViewCellDeleteConfirmationView"]) { // move delete confirmation view
[subview bringSubviewToFront:subview2];
}
}
}
}
{
[super layoutSubviews];
for (UIView *subview in self.subviews) {
self.backgroundView.frame = CGRectMake(0, 0, self.backgroundView.frame.size.width, self.backgroundView.frame.size.height);
for (UIView *subview2 in subview.subviews) {
if ([NSStringFromClass([subview2 class]) isEqualToString:@"UITableViewCellDeleteConfirmationView"]) { // move delete confirmation view
[subview bringSubviewToFront:subview2];
}
}
}
}
相关文章推荐
- XMLHttpRequest和ActiveXObject学习
- LeetCode Summary - JAVA Version - LinkedList (To be continued)
- English job interview Questions and Answers
- android4.4中关于不能再主线程下载和在主线程中更新UI的矛盾
- Java之建造者模式(Builder Pattern)
- ibatis.net:第八天,QueryForDictionary
- PHP: Fatal error:Call to undefined function com_create_guid()
- hdu 1242 Rescue(广搜+优先队列)
- codeforces B. Polo the Penguin and Matrix 解题报告
- EasyUI设置Combobx类型
- Retrieving Assets from the Assets Library(不用内置GUI组件,检索手机中的相片/视频资源)
- maven中用yuicompressor和closure-compiler对js、css文件进行压缩
- maven中用yuicompressor和closure-compiler对js、css文件进行压缩
- UITextField 控制输入长度
- DUILib 中的通知事件
- flex builder显示源代码行号
- SQuirreL SQL Client的安装与配置
- 设计模式(三)之生成器模式(Builder Pattern)
- 圆形ImageView且设置动态生成的image
- Ant build.xml中的各种变量和属性