ViewController vs. View

Posted by James on Stack Overflow See other posts from Stack Overflow or by James
Published on 2010-06-05T18:35:06Z Indexed on 2010/06/05 18:42 UTC
Read the original article Hit count: 306

Trying to wrap my head around the apple design scheme. I have a UIViewController and the corresponding XIB file that has my main screen in my application. I want to have a button on this XIB that displays another "form" (this is my disconnect) in the foreground where the user selects from a myriad of choices, then it hides that "form" and goes back to the first one.

I'm completely lost here. Initially I thought I'd just add another view and set the self.view of my controller to the new view, add another IBAction and call it a day, but I can't seem to make that work. For sake of argument, say I want to "gray out" the current form, have a modal type window that takes up roughly 60% of the screen and requires you select an option, then it hides itself and we go back to normal. What is the standard approach here?

Thanks

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about xcode