2018-12-01から1ヶ月間の記事一覧
ちゃんと[NSAttributesString: Any]?型パラメータが用意されてるので、そこに必要な設定を入れたDictionaryをセットすると動くぞ! self.navigationController?.navigationBar.titleTextAttributes = [ .foregroundColor: UIColor.white, .backgroundColor: …
UITableViewCellにはselectedBackgroundViewというプロバティが用意されてるので、そこにViewをセットするだけ! // ハイライトカラー設定 let highlightedView = UIView(frame: self.frame) highlightedView.backgroundColor = .white selectedBackgroundVi…
Gitの管理対象外にしたいけどプロジェクト共通で設定しないといけない訳でもないファイル達(IntelliJの.ideaみたいなやつ)がある時は .git/info/excludeにgit管理させないディレクトリを書くと自動的にignoreしてくれる $ vi .git/info/exclude 例: # git ls…