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];

     

     

     }

     */

  • 相关阅读:
    弹出的iframe 表单无法获取焦点
    记录IE的两则BUG
    manifest 在移动端的应用实验
    [hover 状态图片变小] 淘宝的一个小用户体验
    使用 JSONP 的几点注意
    Apple在线商店iphone5, ipad mini到货提醒 邮件
    关于弹窗中的事件多次执行
    zen coding 插件使用实践
    hadoop系列整理Spark
    hadoop系列整理HBase
  • 原文地址:https://www.cnblogs.com/gzz2016/p/5603918.html
Copyright © 2011-2022 走看看