m_pNavTopBar = [[UINavigationBar alloc] initWithFrame: CGRectMake(0.0f, 0.0f, 320.0f, 44.0f)];
[m_pNavTopBar setDelegate: nil];
[m_pNavTopBar pushNavigationItem:[[UINavigationItem alloc] initWithTitle:[NSString stringWithUTF8String:[ _(@"SMS Filter Rule") UTF8String ] ] ] animated : true];
[m_pNavTopBar setBarStyle:UIBarStyleBlackOpaque];
[m_pNavTopBar setAlpha:1.0f];
[ m_ContentView->getView() addSubview: m_pNavTopBar];
本文介绍如何使用Objective-C为iOS应用设置自定义的顶部导航栏样式,包括设置代理、导航项标题、样式以及透明度等。

被折叠的 条评论
为什么被折叠?



