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: email@hidden
- Date: Mon, 11 Mar 2013 09:19:23 -0600
- Importance: Normal
My steps are:
1) Launch XCode
2) Create a new project
3) Select Single View Application
4) Give a Project Name
5) Select Device iPhone
6) Click on MainStoryboard.storyboard
7) Delete what's there so that it's blank
8) Add New file Objective-C class subclass UIViewController
9) Uncheck iPad and uncheck XIB
10) Drag a Navigation Controller to the storyboard window
11) Click on the root view controller view
12) Click on the Identity Inspector
13) Type in the Custom Class section the name of the class from step #8
Maybe I should try to do it the way you were doing it and see if I get the
results that you are.
Any help would be appreciated.
> 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