11

の色合い/背景色を変更する方法はありUIDocumentInteractionController navigationbarますか?

4

6 に答える 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 に答える