In Xcode 6.2 beta, I am able to make some view controllers such as "View Controller" or "Navigation view controller" the entry point of my interface by dragging and dropping the "entry point arrow" on it, it gives me something like this :
But when I want to drag this arrow on a tab bar controller, it does not work, so is that a bug or should I do it in another way ?
-
@AshishKakkad What view controller ? I have only my Tab bar controller.– Pop FlamingoDec 29, 2014 at 5:03
-
Delete the tab bar controller, add a normal view controller and then embed it in a tab bar controller– Paulw11Dec 29, 2014 at 5:12
-
@Paulw11 Oh, OK thank you ! Hope Apple will make it easier in the future.– Pop FlamingoDec 29, 2014 at 5:16
4 Answers
Try with following steps.
1) Open StoryBoard
.
2) select TabbarController
which you want to set as RootViewController
.
3) Open Properties
.
4) select InitialView Controller
Option.
For help you can see following image
.
-
Thanks for your answer. Unfortunately, it doesn't work anymore with the newest version of Xcode (Xcode 6.2 I think, it was still possible in Xcode 6.1 if I remember...) Dec 29, 2014 at 7:25
-
1Make sure that you select the View Controller boarder (the white part), not the middle part of the view controller, because that's something else. See this image. i.imgur.com/3tD99Dy.png Jun 15, 2016 at 22:54
its a litile bit confusing over versions on xCode, I'm using version 8.3.2 and it has the follwing
select navigation controller
check the is initial view controller checkbox
Had the same problem. The Answer above solved it using Xcode 6.4. So I think this is the right answer. But as I can´t comment to provide this alternative, I write a new answer
It is also possible to:
- open the
StoryBoard
perOpen as
Source Code
- In the XML
<document>
tag you can add theinitialViewController="viewVontrollerID"
tag - replace the
"viewVontrollerID"
with the id of the ViewController, that the application should start with. (keep the "")
I couldn't find the "initial view controller" checkbox at first. Then I realized that this is because I was in the "Table View" not the "Table View Controller." When I clicked into the "Table View Controller" that checkbox appeared.