navigationcontrollerを使って次の文で遷移したのですが
self.navigationController!.pushViewController(self.storyboard!.instantiateViewController(withIdentifier: gamen), animated: true)
前の画面に戻る時に
self.navigationController?.popToRootViewController(animated: true)
で戻ったのですが
Expression of type '[UIViewController]?' is unused
という警告が出てしまいます。
動くことは動くのですがなぜ警告が出るんですか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/12/28 01:33