Search code examples
objective-ciosxcodedebuggingxcode4

How to find out what the first view controller that gets loaded in an iPhone app is?


I think that looking at others' code is a good way to learn. I'm trying to learn iOS programming like this, but one thing that's confusing is when I look at a new project there's always a bunch of view controllers, and I don't know which one loads first.

Is there an entry in the plist file which says which view controller gets loaded first? How do you go about picking apart someone else's code in an Xcode project?


Solution

  • In the project there's a space called Main Interface / Main Storyboard that looks like this:

    Target > General > Deployment Info > Main Interface:

    enter image description here

    But if they set it in code, then use ⇧+⌘+F on the project and search for 'rootViewController'.