Questions tagged [storyboard]
A storyboard is a graphic organizer in the form of illustrations or images displayed in sequence for the purpose of pre-visualizing a motion picture, animation, motion graphic or interactive media sequence.
storyboard
12,429
questions
639
votes
52
answers
235k
views
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 ...
606
votes
6
answers
240k
views
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 ...
360
votes
10
answers
357k
views
How to pass prepareForSegue: an object
I have many annotations in a mapview (with rightCalloutAccessory buttons). The button will perform a segue from this mapview to a tableview. I want to pass the tableview a different object (that ...
298
votes
14
answers
131k
views
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 ...
268
votes
25
answers
169k
views
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.
258
votes
3
answers
95k
views
What is "Constrain to margin" in Storyboard in Xcode 6
I am Working with autolayout and constraints and found there is a Constrain to margins option in Xcode 6 which was not present in Xcode 5 and is checked by default.
I created a test project then I ...
257
votes
10
answers
97k
views
Prevent segue in prepareForSegue method?
Is it possible to cancel a segue in the prepareForSegue: method?
I want to perform some check before the segue, and if the condition is not true (in this case, if some UITextField is empty), display ...
244
votes
20
answers
407k
views
How to dismiss ViewController in Swift?
I am trying to dismiss a ViewController in swift by calling dismissViewController in an IBAction
@IBAction func cancel(sender: AnyObject) {
self.dismissViewControllerAnimated(false, completion: ...
235
votes
15
answers
86k
views
Is it possible to update a localized storyboard's strings?
I localized a part of my application with creating a base.lproj storyboard and 3 string files for it. It was a month ago and after that I added new view controller to app, but this controller's ...
220
votes
21
answers
82k
views
Converting Storyboard from iPhone to iPad
I have an iPhone application which has a storyboard. Now I want to provide an iPad application too. So I asked me whether there is a function which helps me convert my iPhone storyboard to an iPad ...
219
votes
7
answers
82k
views
In a storyboard, how do I make a custom cell for use with multiple controllers?
I'm trying to use storyboards in an app I'm working on. In the app there are Lists and Users and each contains a collection of the other (members of a list, lists owned by a user). So, accordingly, I ...
216
votes
18
answers
294k
views
How to change Navigation Bar color in iOS 7?
How do I change the Navigation Bar color in iOS 7?
Basically I want to achieve something like the Twitter Nav Bar (updated Twitter for iOS7 that is). I embedded-in a nav bar atop a view controller. ...
213
votes
18
answers
115k
views
Custom Cell Row Height setting in storyboard is not responding
I am trying to adjust the cell height for one of the cells on my table view. I am adjusting the size from the "row height" setting inside the "size inspector" of the cell in question. When I run the ...
211
votes
5
answers
60k
views
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 ...
201
votes
9
answers
55k
views
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 ...
200
votes
21
answers
173k
views
Storyboard doesn't contain a view controller with identifier
I keep getting the following error:
Storyboard (<UIStoryboard: 0x7ebdd20>) doesn't contain a view controller with identifier 'drivingDetails'
This is the code:
- (void)tableView:(UITableView *...
193
votes
3
answers
97k
views
Table Header Views in StoryBoards
Is there a way to insert a Table Header View (tableHeaderView) in StoryBoard (like we used to do in Interface Builder)?
192
votes
8
answers
153k
views
How can I load storyboard programmatically from class?
My problem is that I was looking for way to use both storyboard and xib. But I can't find proper way to load and show storyboard programmatically. Project was started developing with xib, and now it's ...
181
votes
4
answers
119k
views
What is the difference between Modal and Push segue in Storyboards?
Can someone explain to me what is the exact difference between modal and push segue?
I know that when we use push the segue gets added to a stack, so when we keep using push it keeps occupying memory?...
180
votes
16
answers
154k
views
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 ...
178
votes
5
answers
173k
views
Perform Segue programmatically and pass parameters to the destination view
in my app I've a button that performs a segue programmatically:
- (void)myButtonMethod
{
//execute segue programmatically
[self performSegueWithIdentifier: @"MySegue" sender: self];
}
I ...
177
votes
18
answers
91k
views
How can I use Autolayout to set constraints on my UIScrollview?
I have spent two days trying out the various solutions for Mixed and Pure Autolayout approaches to achieve what was a trivial scrollview setup prior to autolayout, and it's now official - I must be ...
166
votes
9
answers
135k
views
Outlets cannot be connected to repeating content iOS
I have just created an app and have started hooking up @IBOutlet's to the storyboard. I am connecting some of them to labels in a UITableViewCell Prototype Cell with a Basic Style. When I connect it ...
161
votes
22
answers
84k
views
@IBDesignable error: IB Designables: Failed to update auto layout status: Interface Builder Cocoa Touch Tool crashed
I have a very simple subclass of UITextView that adds the "Placeholder" functionality that you can find native to the Text Field object. Here is my code for the subclass:
import UIKit
import ...
159
votes
11
answers
143k
views
Load view from an external xib file in storyboard
I want to use a view throughout multiple viewcontrollers in a storyboard. Thus, I thought about designing the view in an external xib so changes are reflected in every viewcontroller. But how can one ...
156
votes
16
answers
94k
views
Display clearColor UIViewController over UIViewController
I have a UIViewController view as a subview/modal on top of another UIViewController view, such as that the subview/modal should be transparent and whatever components is added to the subview should ...
153
votes
14
answers
31k
views
Xcode Storyboard warning: Constraint referencing items turned off in current configuration. Turn off this constraint in the current configuration
This warning happens in Xcode 6.1. Anyone have ideas what does this warning mean and what will happen with it? Many thanks!
Below is a screenshot with the warnings opened in source code"
How to find ...
148
votes
14
answers
77k
views
How to create an Empty Application in Xcode without Storyboard
Xcode6 has removed the Empty Application template when creating a new project. How can we create an empty application (without Storyboard) in Xcode6 and above, like in earlier versions?
147
votes
2
answers
27k
views
Xcode keeps building storyboard after each keystroke
My Xcode project using a storyboard entered in a very weird state recently: Xcode keeps building the whole project and notably the storyboard after each keypress. I found no reason for this behavior ...
139
votes
6
answers
26k
views
Xcode changes unmodified storyboard and XIB files
Storyboards are rather a royal pain from a git workflow perspective when multiple people are collaborating on them. For example, the XML in the .storyboard file has its starting <document> tag's ...
137
votes
16
answers
151k
views
How to make a simple rounded button in Storyboard?
I just started learning iOS development, cannot find how to make simple rounded button. I find resources for old versions. Do I need to set a custom background for a button? In Android, I would just ...
137
votes
6
answers
56k
views
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 ...
132
votes
17
answers
134k
views
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 ...
132
votes
9
answers
59k
views
What does the "automatically adjusts font requires using a dynamic type text style" warning mean?
I am getting the following warning:
"automatically adjusts font requires using a dynamic type text style"
Which I can not get rid of the warning is on main.storyboard.
I have checked every ...
132
votes
11
answers
84k
views
Storyboard warning: prototype table cells must have reuse identifiers
I am getting this warning from storyboard - prototype table cells must have reuse identifiers.
I have renamed the identifier in the attributes inspector but it does not seem to have removed the ...
128
votes
16
answers
27k
views
How to use single storyboard uiviewcontroller for multiple subclass
Let say I have a storyboard that contains UINavigationController as initial view controller. Its root view controller is subclass of UITableViewController, which is BasicViewController. It has ...
126
votes
33
answers
97k
views
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 ...
124
votes
5
answers
41k
views
Illegal Configuration: Compiling IB documents for earlier than iOS 7 is no longer supported
I recently updated to XCode 9. When I build the app it says "illegal configuration" for some storyboards in my pod files. I tried to recreate the storyboard files but it doesn't help.
122
votes
5
answers
121k
views
Storyboard - refer to ViewController in AppDelegate
consider the following scenario: I have a storyboard-based app. I add a ViewController object to the storyboard, add the class files for this ViewController into the project and specify the name of ...
120
votes
7
answers
76k
views
Adaptive segue in storyboard Xcode 6. Is push deprecated?
Xcode 6 interface builder by default has new checkbox "use size classes". It makes views adaptive.
When I try to make segue between 2 views in my storyboard I have new options:
instead old:...
117
votes
5
answers
119k
views
Use Storyboard to mask UIView and give rounded corners?
Lots of questions like this explain how to programmatically create a mask and provide rounded corners to a UIView.
Is there a way to do it all within Storyboard? Just asking because it seems like ...
117
votes
9
answers
144k
views
How to set the UITableView Section title programmatically (iPhone/iPad)?
I've created a UITableView in Interface Builder using storyboards. The UITableView is setup with static cells and a number of different sections.
The issue I'm having is that I'm trying to setup my ...
115
votes
6
answers
51k
views
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 ...
114
votes
7
answers
48k
views
Autolayout: Add constraint to superview and not Top Layout Guide?
I have a UIView in my UIViewController in storyboard which I want to add a constraint on to space that view a distance from the top edge.
Now, when I do the usual by ctrl + drag to the ViewController'...
112
votes
2
answers
89k
views
What is a StoryBoard ID and how can I use this?
I am new to IOS developing and recently started in Xcode 4.5. I saw for every viewController that i could set some identity variables including the storyboard ID. What is this, and how can I use it?
...
108
votes
10
answers
51k
views
Conditionally start at different places in storyboard from AppDelegate
I have a storyboard set up with working login and main view controller, the latter is the view controller to which the user is navigated to when login is successful.
My objective is to show the main ...
103
votes
4
answers
28k
views
Xcode 4.5 Storyboard 'Exit'
I have just installed Xcode 4.5 for iOS6 support, and I have seen a new icon called 'Exit' in my Storyboard, listed under my view controllers along with 'First Responder' etc. A little green icon ...
102
votes
3
answers
54k
views
How to add a footer to a UITableView in Storyboard
I'm fairly new to iOS development.
I want to add a footer to the table view in a UITableViewController. I've made the view I want to use as the footer graphically in Storyboard, however I can't work ...
101
votes
6
answers
73k
views
Use didSelectRowAtIndexPath or prepareForSegue method for UITableView?
I'm using storyboards and I have a UITableView. I have a segue setup that pushes from my table to the detail VC. But which method should I use to handle this? I'll have to pass a couple objects to ...
100
votes
3
answers
30k
views
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 ...