Note that there are some explanatory texts on larger screens.

plurals
  1. POXcode MVC problem
    primarykey
    data
    text
    <p>I have created a baseview project in xcode4. I want to use a new xib file to instead of the old viewController.xib file. So I just change the old viewController.xib file's name. and I also change the MainWindows.xib, let the UIViewController direct to the new name one xib file. </p> <p>All are ok, but the view are transparent in the MainWindows, like link the xib to UIViewController are not correct. I don't know..</p> <p>My step are: 1. create a new xib file. 2. link the new xib file to MyUIViewController class ![I think link way is this,I don't know if is correct?]</p> <p>Try other way: If I use the xcode template to add sub UIViewController (include xib and class file), and add the code like:</p> <pre><code> testViewControllerViewController *Controller = [[testViewControllerViewController alloc] init]; self.viewController = Controller; [Controller release]; //self.window.rootViewController = self.viewController; [self.window addSubview:self.viewController.view]; [self.window makeKeyAndVisible]; </code></pre> <p>The xib content are show correct.</p> <p>If I change the name of xib file, the xib content are not show. Because I want to create the Class first, and use the old xib file.</p> <p>Any body know how to resolve it: Create xib file and sub UIViewController separately.</p> <p>If these are way to do this, There is a problem: I have two xib file and link to only one UIViewController, if I use the UIViewController, which xib is used?</p> <p>So, I want to sure whether can we create the xib file and sub UIViewController separately? Why we must set the Custom Class file to SUB UIViewController, show as the picture above.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload