Skip to content

UINavigationControllerの戻るボタンの戻るを消す

   

UINavigationControllerの戻るボタンの文字を消します。
「<戻る」を「<」にします。

let backButton = UIBarButtonItem(title: "", style: .plain, target: nil, action: nil)
self.navigationItem.backBarButtonItem = backButton
self.navigationController?.pushViewController(picDetailView, animated: true)

関連記事

  1. ○秒後に実行させる、毎秒実行する
  2. UITableViewにヘッダーを設定する
  3. UICollectionViewにCustomセルを追加する
  4. UICollectionView
  5. 輸出コンプライアンスのウィザードをスキップする
  6. Alamofireを使ってAPIからJSONを取得する
  7. delegateで別のViewからメソッドを呼び出す