自定义滑动以删除TableViewCell中的水平按钮

时间:2018-01-31 05:36:56

标签: ios swift uitableview swipe

我已经设法实现了这两个按钮,这是iOS使用public abstract class SuperClass { String a; String b; Double c; public void m1(){ //All the 4 variables are used here. m1logic(); } public void m2(){ //All the variables are used here. m2logic(); } public void m3(){ //All the variables are used here. m3logic(); } public abstract void m1logic(); public abstract void m2logic(); public abstract void m3logic(); } public class ClassA extends SuperClass { UserDefinedTypeA d; public void m1logic(){ // UserDefinedTypeA logic } public void m2logic(){ // UserDefinedTypeA logic } public void m3logic(){ // UserDefinedTypeA logic } } public class ClassB extends SuperClass { UserDefinedTypeB d; public void m1logic(){ // UserDefinedTypeB logic } public void m2logic(){ // UserDefinedTypeB logic } public void m3logic(){ // UserDefinedTypeB logic } } 方法提供的本机,但我需要以下输出。有人帮我怎么做?

enter image description here

以下是我试过的代码

editActionsForRowAt

0 个答案:

没有答案