2017-05-18 15 views

答えて

1
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { 
     if (indexPath.section == 1) { 
      isSectionSelected = true 
      self.tableView.reloadSections([indexPath.section], withRowAnimation: .None) 
      self.performSegueWithIdentifier("serviceHistoryDetailView", sender: self) 
     } 
     tableView.deselectRowAtIndexPath(indexPath, animated: true) 
} 

reloadSectionsIntNSIndexSet、ない配列を期待します。

NSIndexSetindexPath.sectionから作成する必要があります。その後、配列ではなくNSIndexSetを渡します。

+0

これは簡単でした。ありがとう! – Jace

関連する問題