我有一个普通的TableView有七个部分.否则我有一个prepareForSegue方法.一切都运行良好.但是当我在viewDidLoad中设置编辑模式时
[self.tableView setEditing:YES animated:YES];
Run Code Online (Sandbox Code Playgroud)
我的prepareForSegue方法不再起作用了.
为了编辑我已经实现了这些方法
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath;
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath;
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath;
Run Code Online (Sandbox Code Playgroud)
希望你能帮助我.谢谢.
我想转换一个字符串例如
NSString *stringWithNumber = @"3/4"
Run Code Online (Sandbox Code Playgroud)
进入NSNumber.这怎么可能?