首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏移动端周边技术扩展

    iOS 11 editActionsForRowAtIndexPath

    indexPath { } 直接进行左右两边进行侧滑操作 UIKIT_EXTERN API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(tvos) @interface UIContextualAction *shareRowAction = [UIContextualAction contextualActionWithStyle:UIContextualActionStyleNormal title: @"" handler:^(UIContextualAction * _Nonnull action, __kindof UIView * _Nonnull sourceView, void (^ _Nonnull *deleteRowAction = [UIContextualAction contextualActionWithStyle:UIContextualActionStyleDestructive title:@"" handler:^(UIContextualAction * _Nonnull action, __kindof UIView * _Nonnull sourceView, void

    1K60发布于 2018-06-14
  • 来自专栏大宇笔记

    iOS 左滑按钮(UITableViewRowAction)显示图片

    { let deleteAction = UIContextualAction(style: .normal, title: nil, handler: { (ac:UIContextualAction

    3.1K10发布于 2019-01-15
  • 来自专栏大宇笔记

    iOS 左滑按钮(UITableViewRowAction)显示图片

    { let deleteAction = UIContextualAction(style: .normal, title: nil, handler: { (ac:UIContextualAction

    1.9K20编辑于 2022-05-06
  • 来自专栏学海无涯

    iOS开发之Lists in UICollectionView

    cell.trailingSwipeActionsConfiguration = UISwipeActionsConfiguration( actions: [UIContextualAction cell.leadingSwipeActionsConfiguration = UISwipeActionsConfiguration( actions: [UIContextualAction

    1.7K10发布于 2020-07-14
  • 来自专栏学海无涯

    iOS开发之Lists in UICollectionView补充

    indexPath) else { return nil } return UISwipeActionsConfiguration( actions: [UIContextualAction indexPath in return UISwipeActionsConfiguration( actions: [UIContextualAction

    1.1K60发布于 2020-10-29
  • 来自专栏腾讯Bugly的专栏

    你可能需要为你的 APP 适配 iOS 11

    tableView trailingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath { //删除 UIContextualAction *deleteRowAction = [UIContextualAction contextualActionWithStyle:UIContextualActionStyleDestructive title:@"delete" handler:^(UIContextualAction * _Nonnull action, __kindof UIView * _Nonnull sourceView UISwipeActionsConfiguration configurationWithActions: @[deleteRowAction]]; return config; } 创建UIContextualAction UIContextualActionStyle) { UIContextualActionStyleNormal, UIContextualActionStyleDestructive } NS_SWIFT_NAME(UIContextualAction.Style

    2.6K60发布于 2018-03-23
  • 来自专栏IOS分享

    关于 MVC 的一个常见的误用

    { let deleteAction = UIContextualAction(style: .destructive, title: "Delete") { \_, \_, done { let deleteAction = UIContextualAction(style: .destructive, title: "Delete") { \_, \_, done

    1.2K50发布于 2019-04-29
  • 来自专栏WeTest质量开放平台团队的专栏

    你可能需要为你的 APP 适配 iOS11

    editActionsForRowAtIndexPath:)代理方法: 这两个代理方法返回的是UISwipeActionsConfiguration类型的对象,创建该对象及赋值可看下面的代码片段: 创建UIContextualAction

    3.4K00发布于 2017-08-04
  • 来自专栏WeTest质量开放平台团队的专栏

    你可能需要为你的APP适配iOS11

    editActionsForRowAtIndexPath:)代理方法: 这两个代理方法返回的是UISwipeActionsConfiguration类型的对象,创建该对象及赋值可看下面的代码片段: 创建UIContextualAction

    1.9K20编辑于 2023-05-04
  • 来自专栏学海无涯

    iOS14开发-UIView

    indexPath) else { return nil } return UISwipeActionsConfiguration( actions: [UIContextualAction indexPath in return UISwipeActionsConfiguration( actions: [UIContextualAction

    14.8K10发布于 2021-01-21
领券