When you push a UIViewController into navigation stack, there is a default "back" button with the title of previous view. Sometimes the title is too long or text is not quite right. Then you need to define your own.
Fortunately it's easy. The problem is where to do it.
Showing posts with label viewDidLoad. Show all posts
Showing posts with label viewDidLoad. Show all posts
Saturday, March 26, 2011
How to Define Custom backBarButtonItem
Labels:
backBarButtonItem,
leftBarButtonItem,
navigationController,
navigationItem,
pushViewController,
UIBarButtonItem,
UIViewController,
viewDidLoad
Friday, March 4, 2011
How to Center Image when Rotating UIWebView
What happens, when you rotate iPhone while your application shows embedded webpage with custom background graphics? Hopefully the application rotates, too, and hopefully the background image has been designed well (*).
Here is an example how to top center backgroung image while rotating. Please note that the image has been poorly designed ON PURPOSE. Can't make a point with well designed graphics :)
Here is an example how to top center backgroung image while rotating. Please note that the image has been poorly designed ON PURPOSE. Can't make a point with well designed graphics :)
Labels:
html,
loadRequest,
NSBundle,
NSURL,
NSURLRequest,
shouldAutorotateToInterfaceOrientation,
UIViewController,
UIWebView,
viewDidLoad,
webKit
Subscribe to:
Posts (Atom)

