swift 3.0
xcode 8.0
今swiftでアプリ開発をしているのですが、insertRowsAtIndexPathsの記述方法が2.2から3.0で記述方法が変わったみたいで、今調べています。
調べた結果3.0verの記述方法が出てきたのですが、元のコードをswift3.0の記述に書き換えたコードを教えてもらいたいです。お願いいたします。
(元コード)
self.tableView.insertRowsAtIndexPaths([NSIndexPath(forRow: 0, insection: 0)],withRowAnimation: UITableViewRowAnimation.Right)
(swift3.0の書き方)
tableView.insertRows(at: insertIndexPaths, with: UITableViewRowAnimation.top)
試したコードはこちらです。
self.tableView.insertRows(at: forRow: 0,insection: 0 with: UITableViewRowAnimation.right)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/11/08 12:59