Re: Problem with using a Navigation Controller in Xcode
Re: Problem with using a Navigation Controller in Xcode
- Subject: Re: Problem with using a Navigation Controller in Xcode
- From: Fritz Anderson <email@hidden>
- Date: Mon, 11 Mar 2013 08:12:00 -0500
I must not be doing what you are. I don't see a problem.
On 10 Mar 2013, at 5:48 PM, email@hidden wrote:
> I am using XCode 4.6 and created a project.
>
> I am using a Single View Application type of project
I selected iPhone only. I checked the Use Storyboards box in the new-project assistant. In the storyboard, I see a UIViewController with the initial-controller arrow pointing to it.
> and I drag a
> Navigation Controller to the StoryBoard.
A new scene appears with a nav controller, connected by a root-view segue to a table-view controller.
I made it the initial view controller using the Attributes inspector. The original view controller is now an orphan.
> I added a DetailViewController of type UIViewController.
I dragged a UIViewController in. Using a control-drag, I connected the nav controller to the new view controller and selected "root view controller" from the heads-up menu. The new segue appears, and the old one (to the table-view controller) disappears; the table controller is now an orphan.
> I then click on the Root View Controller, look at the Identity Inspector
> and under Custom Class, I should be able to type in a class name, correct?
Using the Identity inspector, I type "MyRootViewController" in the class field. I press the return key, and the name is accepted. The scene is now labeled "My Root View Controller." My next steps would be to delete the orphaned scenes and start on MyRootViewController.
> What I am finding is that I cannot change that from UITableViewController.
>
> Has anyone experienced this and how do I get this to work correctly?
It works for me. What are we doing different?
— F
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden