tags:

views:

345

answers:

0

I'm trying to duplicate the functionality of the "Obama" app. I want the navigationBar image on the tableview controller to be one graphic. I want a different graphic to be the background image on the UIWebView controller that get's pushed when I touch a tableCell in the initial tableview.

I have a tableview controller. At the top of the tableview, I can change the background of the navigationBar by adding a subview to the navigationController.navigationBar.

When I touch one of the cells, it loads a UIWebView. On that UIWebView, I'd like to have a different image in the navbar.

If I simply assign a subview to the tableview and UIWebview navigationItems, then the entire graphic doesn't fill horizontally (there's about 10 pixels on the left and 5 on the right edge where I can see the background).

If I instead create a UINavigationBar and assign a view to it on each controller, then the "Back" button on the UIWebView does nothing. Do I have to make something a delegate for the UIWebView's UINavigationBar that I created?