zoukankan      html  css  js  c++  java
  • 0621

    ////这个也有用

    //- (nullable NSArray<UITableViewRowAction *> *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath{

    //    UITableViewRowAction *firstAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"你猜" handler:^(UITableViewRowAction * _Nonnull action, NSIndexPath * _Nonnull indexPath) {

    //        /** 1. 更新数据源:向数组中添加数据. */

    //        [_autoMarry insertObject:@"abcd" atIndex:indexPath.row];

    //        

    //        /** 2. TableView中插入一个cell. */

    //        [tableView insertRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];

    //        

    //        NSLog(@"22");

    //        

    //    }];

    //    UITableViewRowAction *secondAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"我不猜" handler:^(UITableViewRowAction * _Nonnull action, NSIndexPath * _Nonnull indexPath) {

    //        

    //        

    //    }];

    //    firstAction.backgroundColor = [UIColor purpleColor];

    //    secondAction.backgroundColor = [UIColor blueColor];

    //    return @[firstAction,secondAction];

    //}

     

     

     

     

     

     

    /*

     //     点击 + 图标的操作.

    //    if (editingStyle == UITableViewCellEditingStyleInsert) { *< 判断编辑状态是插入时.

    //        * 1. 更新数据源:向数组中添加数据. */

    //        [_autoMarry insertObject:@"abcd" atIndex:indexPath.row];

    //

    //        * 2. TableView中插入一个cell. */

    //        [tableView insertRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];

    //        editIndex = indexPath;

    //

    //    }

    // */?

     

     

     

     

    /*另外一个控制器

     

     @property(nonatomic,strong)nameViewController *nameController;

     

     self.nameController=[[nameViewController alloc]init];

     

     

     

     did方法中

     self.nameController.delegate=self;

     [self.navigationController pushViewController:self.nameController animated:YES];

     

     

     .m

     

     

     self.name=self.nameField.text;

     

     if ([self.delegate respondsToSelector:@selector(save:)]) {

     [self.delegate save:self.name];

     }

     

     [self.navigationController popViewControllerAnimated:YES];

     

     

     -(void)save:(NSString *)name{

     

     _realNamepff=name;

     刷新值

     

     [_contentMarr  replaceObjectAtIndex:0 withObject:name];

     //      用来刷新指定的行

     [_tbView reloadRowsAtIndexPaths:@[_nameIndexpath] withRowAnimation:UITableViewRowAnimationNone];

     

     

     }

     */

  • 相关阅读:
    工作流 —— AWS
    ant design —— form 生成 嵌套json数据
    react 获取子组件的 state (转发)
    React 调用子组件的函数(函数)
    react js 组件传参(转发)
    链接脚本文件(.ld .lds)详解
    gcc ------ -ffunction-sections -fdata-sections -gc-sections 参数详解
    GNU ARM 汇编伪指令
    STM32 CM3/CM4 ------ startup.s 文件分析 ------ GCC RT-Thread Studio 版本
    __attribute__之section详解 ------ 把函数指定到具体某个section 之 RT-thread 实例详解
  • 原文地址:https://www.cnblogs.com/gzz2016/p/5603918.html
Copyright © 2011-2022 走看看