I am perfect because I have such a problem, so you can try your way, ok !!
firstly, you create a navigation controller and then show it in a window
UINavigationController *nav=[[UINavigationController alloc] initWithRootViewController:YourView];
Next step: you create a Uiimageview object with an image property with your image that you want to add a navigation bar and the ptoperty frame is the position you want
UIImageView *imgView=[UIImageView alloc] initWithImage:[UIImage imageNamed:@"YourImagename"]; imgView.Frame=CGrectmake();
final step: you add the imgView object to the navigation bar as a subview
[nav.navigationBar addSubview:imgView]
Done !!!!!!!!!!!
source share