XCode Tutorial: Custom Navigation Bar

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
23,631
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 10, 2010

Any class file method can be overridden by another class file accessing that method without even touching the class file, yet the file has the same code the whole time. For this, we override the drawRect:rect method in the UINavigationBar class and declare an image, then pass it as the navigation bars background. This means that you can have a photo as the background.

Source Code: http://tinyurl.com/27rgkbv

Check out YourAppleMan!
http://youtube.com/YourAppleMan

---------------------------------------- ------------------------------

For shout-outs, blog advertising and more, check out the "Advertise" page on my blog.

http://blog.simplesdk.com/index.php/a...

---------------------------------------- ------------------------------

Other Links:

http://twitter.com/SimpleSDK
http://blog.simplesdk.com

  • likes, 5 dislikes

Link to this comment:

Share to:

Top Comments

  • Hey.. I've just started teaching my 6 yr old son how to program because he got so into the interface builder but to no avail. I was thinking that he just didn't get it until I cam across your vids and now he's loving it and actually getting it.. He's got Asbergers Syndrome and he clicks with your stuff. Keep it up.. It's much appreciated.

  • Thanks, but how do you have buttons in the Nav Bar that actually do something. For example, a Next button (on the right side) that shows a new form.

    Actually, same comment as - fedelerinaldi

see all

All Comments (22)

Sign In or Sign Up now to post a comment!
  • @alcamie this must be a joke

  • Where did you learn how to code?

  • May i know how can i make a navigation bar stay after i switch it to another view?

  • You have not shown how to custom the NavBar, its totally not using any image! You just simply add two things on the view, and that can be done by anyone in just 15min!

    How useless of this tutorial!

  • what the fuck is this video, i dont want to hear a amateur programmer that is only 12 years old.

  • Thanks, but how do you have buttons in the Nav Bar that actually do something. For example, a Next button (on the right side) that shows a new form.

  • Is it possible to use an image for the background of the buttons on the navigation bar as well?

  • Thats wrong.

  • You lost me at the plug..

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more