Iphone 如何使用隐藏的导航栏将导航控制器正确添加到我的搜索视图

Iphone 如何使用隐藏的导航栏将导航控制器正确添加到我的搜索视图,iphone,ios,ios4,uiviewcontroller,uinavigationcontroller,Iphone,Ios,Ios4,Uiviewcontroller,Uinavigationcontroller,启动我的应用程序时,用户在启动我的应用程序时看到的第一个屏幕(视图)是一个没有任何导航的搜索表单。搜索过程完成并准备好显示结果后,将显示导航。我一直停留在正确的方式,使它与导航控制器的工作 因此,假设应用程序名称为RealEsateProperties 在RealEsatePropertiesAppDelegate.h中: #import <UIKit/UIKit.h> @class RealEsatePropertiesViewController; @interface Re

启动我的应用程序时,用户在启动我的应用程序时看到的第一个屏幕(视图)是一个没有任何导航的搜索表单。搜索过程完成并准备好显示结果后,将显示导航。我一直停留在正确的方式,使它与导航控制器的工作

因此,假设应用程序名称为RealEsateProperties

在RealEsatePropertiesAppDelegate.h中:

#import <UIKit/UIKit.h>

@class RealEsatePropertiesViewController;

@interface RealEsatePropertiesAppDelegate : NSObject <UIApplicationDelegate> 
{
        UINavigationController *ListingNav;
}

@property (nonatomic, retain) IBOutlet UIWindow window;

@property (nonatomic, retain) RealEsatePropertiesViewController *viewController;

// Then I added this line for the navigation
@property (nonatomic, retain) UINavigationController *ListingNav;


@end
我做错什么了吗

谢谢你的帮助


Stephane

您需要创建/分配RealEsatePropertiesViewController吗

viewController = [[RealEsatePropertiesViewController alloc] init];

您需要创建/分配RealEsatePropertiesViewController吗

viewController = [[RealEsatePropertiesViewController alloc] init];

导航栏是否显示在第一个屏幕上?或者它在整个应用程序中都没有出现?导航栏是否出现在第一个屏幕上?或者它在整个应用程序中都没有出现?