-1
に移動しなければならない。これは私の現在のコードです:スウィフト:私は表のセルにテキストを挿入したいし、ユーザーがテキストを入力したときに、ビューは、次のビュー
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
print("You selected cell #\(indexPath.row)!")
Catagory1.CategoryNo = indexPath.row + 1
let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
let nextViewController = storyBoard.instantiateViewControllerWithIdentifier("SubView") as! SubCatagory
self.navigationController?.pushViewController(nextViewController, animated:true)
let backItem = UIBarButtonItem()
backItem.title = "Back"
backItem.tintColor? = UIColor.blueColor()
navigationItem.backBarButtonItem = backItem
}