New iOS 5 API: Customize UINavigationBar Background Property with EASY function!!!


/ Published in: iPhone
Save to your folder(s)

Here is a nice function you can use to implement a custom background for your UINavigation Bars

Simply make two images in photoshop:

32 x 32
44 x 44

and name them whatever you want.

put them in your iPhone project by dragging and dropping them from the desktop or another directory.

If need be check the Copy Group Destination files in folder line to add the two image files to your project.

Make sure you replace the two lines that create the UIImages with your image names


Copy And paste the function into your app delegate right above applicationDidFinishLaunchingWithOptions:

then simply call

[self customizeAppearance]; inside your app delegate and...

voila, enjoy :)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.