Questions tagged [uistoryboard]

UIStoryboard is a screen flow layout mechanism introduced in iOS 5. Storyboards allow a developer to create a conceptual overview of the screens in an app and the connections/workflow among them. Storyboards can be implemented gradually in an existing application, and used in conjunction with XIBs.

What are Storyboards?

UIStoryboard is a user interface composition feature provided by Xcode and introduced by Apple with iOS 5.

Apple describes the feature as:

Layout the workflow of your app using the new Storyboards feature built into the design tools of Xcode. Created for apps that use navigation and tab bars to transition between views, Storyboards eases the development by managing the view controllers for you. You can specify the transitions and segues that are used when switching between views without having to code them by hand.

What do Storyboards look like?

An example of a storyboard from Ray Wenderlich's tutorial :

storyboard

Helpful links

2938 questions
639
votes
52 answers

Xcode 6 Bug: Unknown class in Interface Builder file

I upgraded to Xcode 6 beta 4 and now my App continuously crashes with the message Unknown class X in Interface Builder file. It crashes because supposedly Xcode can't find my custom classes that I have linked in my Storyboard but it shows that…
Epic Byte
  • 33,840
  • 12
  • 45
  • 93
606
votes
6 answers

What are Unwind segues for and how do you use them?

iOS 6 and Xcode 4.5 has a new feature referred to as "Unwind Segue": Unwind segues can allow transitioning to existing instances of scenes in a storyboard In addition to this brief entry in Xcode 4.5's release notes, UIViewController now seem to…
Imre Kelényi
  • 22,113
  • 5
  • 35
  • 45
298
votes
14 answers

Best practices for Storyboard login screen, handling clearing of data upon logout

I'm building an iOS app using a Storyboard. The root view controller is a Tab Bar Controller. I'm creating the login/logout process, and it's mostly working fine, but I've got a few issues. I need to know the BEST way to set all this up. I want to…
Trevor Gehman
  • 4,645
  • 3
  • 22
  • 25
267
votes
25 answers

Programmatically set the initial view controller using Storyboards

How do I programmatically set the InitialViewController for a Storyboard? I want to open my storyboard to a different view depending on some condition which may vary from launch to launch.
Jagdev Sendhav
  • 2,875
  • 4
  • 15
  • 24
211
votes
5 answers

Xcode 10, where are the UI elements?

Have been out of Swift coding for almost a year, I'm back. Download Xcode 10 beta. Have I lost my mind? I've tried every trick I know, none of the UI elements show up in storyboard. Zero. The sidebar is empty. Xcode 10: Xcode 9, no problem there…
Edward Potter
  • 3,760
  • 4
  • 28
  • 39
200
votes
9 answers

When to use Storyboard and when to use XIBs

Are there any guidelines on when to use storyboards in an iOS project and when to use XIBs? what are the pros and cons of each and what situations do they each suit? Near as I can tell it's not that clean to use storyboard segues when you have view…
Affian
  • 3,380
  • 5
  • 22
  • 26
180
votes
16 answers

How to Implement Custom Table View Section Headers and Footers with Storyboard

Without using a storyboard we could simply drag a UIView onto the canvas, lay it out and then set it in the tableView:viewForHeaderInSection or tableView:viewForFooterInSection delegate methods. How do we accomplish this with a StoryBoard where we…
Seamus
  • 3,191
  • 3
  • 22
  • 20
137
votes
6 answers

Segue to another storyboard?

Is it possible to segue from one storyboard to another, or to embed a storyboard in a view controller in another storyboard? I need to place a UITabBarController in a UINavigationController, and I'd like to keep them nice and separate.
Ry-
  • 218,210
  • 55
  • 464
  • 476
131
votes
17 answers

How to use UIScrollView in Storyboard

I have a scroll view with content that is 1000px tall and would like to be able to lay it out for easy design on the storyboard. I know it can be done programmatically but I really want to be able to see it visually. Every time I put a scroll view…
Alex Reynolds
  • 6,264
  • 4
  • 26
  • 42
125
votes
32 answers

IBOutlet is nil, but it is connected in storyboard, Swift

Using Swift 1.1 and Xcode 6.2. I have a UIStoryboard containing a singular, custom UIViewController subclass. On it, I have an @IBOutlet connection of type UIView from that controller to a UIView subclass on the storyboard. I also have similar…
Stefan Arambasich
  • 2,231
  • 2
  • 19
  • 24
115
votes
6 answers

Xcode without Storyboard and ARC

i have downloaded new xcode-5 and just started using it. We can create application directly including storyboard and ARC , it is not asking for option like earlier versions. So, my question is how can we use xcode5 without ARC and storyboard. we…
PJR
  • 13,052
  • 13
  • 64
  • 104
100
votes
3 answers

Does anyone know what the new Exit icon is used for when editing storyboards using Xcode 4.5?

Right-clicking the Exit icon yields an empty window. Can't Ctrl-drag a connection to any IB elements or corresponding source files. Docs give no love. Doesn't appear in nib files, only storyboards. My assumption is that it's a corollary to segues,…
rsswtmr
  • 1,776
  • 5
  • 16
  • 26
99
votes
8 answers

Xcode 6 how to enable storyboard zoom?

I've updated to Xcode 6 beta 3 and see that the [+ = -] buttons in the storyboard corner are gone. Is there a way for me to zoom in and out on view controllers within a storyboard in Xcode 6?
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
88
votes
18 answers

In iOS13 the status bar background colour is different from the navigation bar in large text mode

Pre-conditions to reproduce the problem: Xcode 11 beta + iOS 13 (latest version until Jun. 12 2019) The navigation bar is in Large text mode Specify the colour of navigation bar. The status bar will remain in white in a real device, above the…
steven
  • 1,237
  • 2
  • 11
  • 13
84
votes
4 answers

iOS9 storyboard what is unhandled action (handleNonLaunchSpecificActions)?

I've noticed the following error popping up in the console when running my app on iOS 9 when using a storyboard. I'm using xCode7. Is this something I need to be concerned about? -[UIApplication…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
1
2 3
99 100