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: Tue, 12 Mar 2013 11:49:45 -0600
- Importance: Normal
Matt,
Step #7 was delete what's there.
Perhaps I was not clear. In the Storyboard, I delete it.
Step #8 I add a UIViewController.
Sorry if that caused confusion
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
Thanks in advance
> On Mon, 11 Mar 2013 09:19:23 -0600, email@hidden said:
>
>>10) Drag a Navigation Controller to the storyboard window
>>11) Click on the root view controller view
>
> Yes, but the problem is that the default root view controller (11) that
> you get when drag a navigation controller into the canvas (10) is a
> UITableViewController. Your class is not a UITableViewController, so,
> quite correctly, you can't turn a UITableViewController into your class.
> You have to *delete* the UITableViewController and replace it as root view
> controller with a plain vanilla UIViewController. m.
>
> --
> matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
> A fool + a tool + an autorelease pool = cool!
> Programming iOS 6! http://shop.oreilly.com/product/0636920029717.do
>
>
_______________________________________________
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