Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios Swift-EditActionsforwatineXPath与CAPSPageMenu组合时不工作_Ios_Swift_Uitableview - Fatal编程技术网

Ios Swift-EditActionsforwatineXPath与CAPSPageMenu组合时不工作

Ios Swift-EditActionsforwatineXPath与CAPSPageMenu组合时不工作,ios,swift,uitableview,Ios,Swift,Uitableview,我对CAPSPageMenu和向表行添加操作有问题。请在下面的图片中找到我的要求 我添加了必需的表函数,但未调用EditActionsErrorWatIndeXPath。选择\单击单元格并尝试滑动以显示编辑按钮时,将拖动整个视图(表格),并将当前视图设置/移动到下一个表格视图控制器 func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) func tableView(tableV

我对CAPSPageMenu和向表行添加操作有问题。请在下面的图片中找到我的要求

我添加了必需的表函数,但未调用EditActionsErrorWatIndeXPath。选择\单击单元格并尝试滑动以显示编辑按钮时,将拖动整个视图(表格),并将当前视图设置/移动到下一个表格视图控制器

func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath)

func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath)

func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [UITableViewRowAction]

func tableView(tableView: UITableView, editingStyleForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCellEditingStyle
只有将表视图控制器添加到CAPSPageMenu数组中时,才会出现此问题

以下是我初始化页面菜单所做的操作:

 func initPageMenu() {
    self.pageMenu?.controllerArray.removeAll()

    var controllerArray : [MyTableViewController] = []
    let menuHeight: CGFloat = 42.0
    let frame = CGRectMake(0.0, 0, self.view.frame.width, (self.view.frame.height - self.vacancyDropdownView.frame.height)-menuHeight)

    let myTable1 : MyTableViewController = MyTableViewController(nibName: "MyTableViewController", bundle: nil)
    controllerArray.append(myTable1)

    let myTable2 : MyTableViewController = MyTableViewController(nibName: "MyTableViewController", bundle: nil)
    controllerArray.append(myTable2)

    // Initialize scroll menu
    pageMenu = CAPSPageMenu(viewControllers: controllerArray, frame: CGRectMake(0.0, self.vacancyDropdownView.frame.height, self.view.frame.width, (self.view.frame.height - self.vacancyDropdownView.frame.height)), pageMenuOptions: parameters)

    // Optional delegate
    pageMenu!.delegate = self

    self.view.addSubview(pageMenu!.view)
 }