English 中文(简体)
UINavig Controller
原标题:UINavigationController in xib not displaying

我正试图利用目前的ModalViewController,通过十一B向一架UInavigationController。 我的十一B的结构如下:

UINavigationController
 -UIView

First Responder is wired to UIView. and UIVIew was dropped inside the UINavigationController

如今,每当模式显示时,才看上去,导航主计长全然无效。

如果我开始采用“UINavigation Controller”方案,那么它就能够发挥作用,而且我只像现在这样有“IDVIew”:

var registerView = new RegisterView();
UINavigationController navController = new UINavigationController(registerView);
registerView.Title="Register";
this.PresentModalViewController(navController,true);

它建议我把UINavigationController错误地连接到我的十一B中,我是否有一个应该接线的散射线?

这个问题也与代代尔·洛古尔代尔的示范显示没有关系,因为我曾试图从阿埃德盖特人那里使用这一轴线,例如:

viewController = new RegisterView();
window.RootViewController = viewController;
window.MakeKeyAndVisible ();
最佳回答

只是试图做这样的事:

        window = new UIWindow (UIScreen.MainScreen.Bounds);
        navcontroller = new UINavigationController ();
        navcontroller.PushViewController (new RegisterView(), false);
        window.RootViewController = navcontroller;
        window.MakeKeyAndVisible ();

        return true;

有必要增加导航是主线控制器,而回观则推进了这一观点。

问题回答

暂无回答




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签