Ok, this one has to have been asked before but sometimes you’re so lost you don’t even know what to look for. I created an iOS project with a tab bar template (default basic one from Xcode). Now I don’t care so much about this template and want to use a single view. I designed what I needed in the story board and modified its custom class to the controller I use.
(Custom class subclass UIViewController)
Those are the only steps I have done so far. When the simulator is launched, the old template, that doesn’t exist anymore in the story board, is used and is still functional. I created a new project with the template I want and I don’t see anything special that I have to do in my main project to have it that way.
If someone could point me in the right direction that would be greatly appreciated.
Thanks
I’m not entire sure what custom class you’re setting. Obviously you can’t make the class of a UIViewController a UIView. Try to include the word ‘Controller’ in the name of any UIViewController subclasses.
Storyboarding a project
Do you see the storyboard at at all? If not –
Your AppDelegate.m should look something like this:
To ‘use’ the storyboard,
Alternatively under the Info tab you can set the
Main storyboard file base nameplist entry.Adding a View Controller
After deleting everything in the storyboard except the Tab Bar Controller Scene, ensure you’re not directly setting it’s view or anything special.
Drag a View Controller into the Storyboard canvas, then ctrl-drag from the centre of the Tab Bar Controller to the centre of the new controller, creating a relationship segue.
Then hit shift-cmd-k to clean and cmd-b/r to build/run 🙂
Hope this helps!