の色合い/背景色を変更する方法はありUIDocumentInteractionController
navigationbar
ますか?
8131 次
6 に答える
4
UIDocumentInteractionController を UINavigationController に配置すると、ナビゲーション バーの色が自動的に適用されます。これはおそらくルート ビュー navcontroller です。
これを行うには、次のdocumentInteractionControllerViewControllerForPreview
メソッドを使用します。
- (UIViewController *) documentInteractionControllerViewControllerForPreview: (UIDocumentInteractionController *) controller
{
// Use the rootViewController here so that the preview is pushed onto the navbar stack
MyAppDelegate *appDelegate = (MyAppDelegate *)[[UIApplication sharedApplication] delegate];
return appDelegate.window.rootViewController;
}
于 2011-09-10T18:16:18.153 に答える