- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
// Override point for customization after application launch.
self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController" bundle:nil] autorelease];
UINavigationController *nav=[[UINavigationController alloc] initWithRootViewController:self.viewController];
// CHANGE COLOR TO BLACK
nav.navigationBar.tintColor = [UIColor blackColor];
// ADDING IMAGE TO NAVIGATION BAR
UIImage *image = [UIImage imageNamed:@"logo_36.png"];
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
[nav.navigationBar.topItem setTitleView:imageView];
self.window.rootViewController = nav;
[self.window makeKeyAndVisible];
return YES;
}
我曾嘗試在AppDelegate類的代碼,因爲我希望它在整個項目中,它的工作原理用於顯示圖像,但它顯示了在中心還我需要的文字,其我無法顯示。在左側導航欄上添加圖像和文字一起
請可能有人建議我如何能在iOS的
發送任何一個設計示例 – Deepesh
對不起,我無法得到您的問題。可以詳細說明請 – Funny
添加圖像或屏幕截圖,你正在做什麼,你期待什麼 – NHS