let imageView = UIImageView(frame: CGRect(x: 0, y: 0, width: 5, height: 10))
imageView.contentMode = .scaleAspectFit
let image = UIImage(named: "emotion")
imageView.image = image
self.navigationItem.titleView = imageView
- Linked from these articles
- Linked from
Swift記事まとめ(毎日自動更新)