Put it inside an UIImageView
let logo = UIImage(named: "logo.png")
let imageView = UIImageView(image:logo)
self.navigationItem.titleView = imageView
More Related Contents:
- iOS UIImagePickerController result image orientation after upload
- Creating a left-arrow button (like UINavigationBar’s “back” style) on a UIToolbar
- How to save picture to iPhone photo library?
- How do I change the title of the “back” button on a Navigation Bar
- How would I tint an image programmatically on iOS?
- Comparing UIImage
- How can I change the font of the back button for my navigation bar?
- How to change UINavigationBar background color from the AppDelegate
- How to add background image on iphone Navigation bar?
- Navigation bar show/hide
- Is there a way to change the height of a UINavigationBar in Storyboard without using a UINavigationController?
- Replace a particular color inside an image with another color
- Placeholder in UITextView
- viewWillDisappear: Determine whether view controller is being popped or is showing a sub-view controller
- Fade/dissolve when changing UIImageView’s image
- Subclass UIApplication with Swift
- How to export “fat” Cocoa Touch Framework (for Simulator and Device)?
- Change color of certain pixels in a UIImage
- UISegmentedControl below UINavigationbar in iOS 7
- How do I scroll the UIScrollView when the keyboard appears?
- How to Edit Empty Spaces of Left, Right UIBarButtonItem in UINavigationBar [iOS 7]
- -[UIApplication delegate] must be called from main thread only
- Change font size of UISegmentedControl
- Change text of “Return” keyboard button
- Add a UIView above all, even the navigation bar
- How to subclass UINavigationBar for a UINavigationController programmatically?
- How to change UIButton image in Swift
- How can I delay a method call for 1 second?
- What does the NS prefix mean?
- Detect backspace Event in UITextField