[英]How to perform a swipe action in swtableviewcell with out moving the image
在我的应用程序中,我正在使用swtableviewcell库,当我执行滑动操作时,它运行良好,该单元正在移开并且出现了按钮,但是我想向用户显示该单元中存在的图像,其行为要实现的是在执行滑动时仅移动文本并使按钮出现,图像视图是恒定的,使用swtableviewcell通过检测kcellstate来实现,我想通过滑动时从左向右移动图像来实现这一点正在执行,但动画效果不佳,用户在执行滑动时可以看到正在移动的图像,有没有一种方法可以使用swtableviewcell或其他任何方法来移动文本。谢谢
I got the answer, while adding the image to the custom cell, instead of 我得到了答案,同时将图像添加到自定义单元中,而不是
[self.contentView addSubView:itemImage];
if i use 如果我用
[self addSubview:itemImage];
then the image is added on top of content view and while swiping the item only the content view moves but not the image 然后将图像添加到内容视图的顶部,并且在滑动项目时仅内容视图移动,而图像不移动
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.