Cannot initialize return object of type ‘UITableViewCellEditingStyle‘ with an rvalue of type ‘long‘

TableView C++ mixed compilation error, force the enumeration type.

 //    return UITableViewCellEditingStyleDelete|UITableViewCellEditingStyleInsert;

    return (UITableViewCellEditingStyle)(UITableViewCellEditingStyleDelete|UITableViewCellEditingStyleInsert);

Guess you like

Origin blog.csdn.net/u010069091/article/details/127461244
Recommended