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" is a term from the animation industry and used by a various languages for a class that controls the sequencing of animations or views.

It's used in WPF, Silverlight, iOS and OS X.

iOS and OS X Storyboard

Storyboards were introduced in iOS 5 and in OS X 10.10 Yosemite. Use storyboards to graphically lay out the user’s path through your iOS or OS X app.

Specify your user interface in terms of:

  • Scenes
  • Segues between scenes
  • Controls used to trigger the segues

WPF

Animation using Storyboards in WPF

Silverlight

Simple storyboard in Silverlight

iOS

Tutorial: Storyboards

9141 questions
359
votes
10 answers

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 holds data) depending on which callout button was…
chizzle
  • 4,122
  • 5
  • 15
  • 18
254
votes
3 answers

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 added a UITableView on a ViewController with the…
Bhumit Mehta
  • 15,898
  • 11
  • 46
  • 63
252
votes
10 answers

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 an error message instead of performing the segue.
Shmidt
  • 15,652
  • 16
  • 79
  • 129
231
votes
15 answers

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 buttons and labels not appear in string files Is it…
GeLB
  • 2,311
  • 2
  • 11
  • 5
218
votes
21 answers

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 storyboard. To be specific: Is there a similar…
dehlen
  • 7,141
  • 4
  • 38
  • 68
217
votes
6 answers

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 have ListCell and UserCell classes. The goal is…
Cliff W
  • 2,255
  • 3
  • 14
  • 6
216
votes
18 answers

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. All I want is to change the nav bar color to light…
Patricio Guerra
  • 2,277
  • 2
  • 11
  • 11
213
votes
18 answers

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 app on my iPhone the cell has the default size set…
zirinisp
  • 8,851
  • 5
  • 29
  • 36
191
votes
3 answers

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)?
Tyler DeWitt
  • 22,191
  • 36
  • 108
  • 189
187
votes
8 answers

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 very hard to nest all xib files in storyboard.…
kokoko
  • 2,614
  • 3
  • 15
  • 25
181
votes
21 answers

Storyboard doesn't contain a view controller with identifier

I keep getting the following error: Storyboard () doesn't contain a view controller with identifier 'drivingDetails' This is the code: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath…
Mat
  • 5,649
  • 9
  • 40
  • 55
180
votes
4 answers

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? Can someone please show me how these two are…
Gaurav_soni
  • 5,824
  • 7
  • 27
  • 46
177
votes
18 answers

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 too stupid. I am setting this up mostly in…
user1459524
  • 3,593
  • 4
  • 16
  • 28
176
votes
5 answers

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 would like to know if there is a way to reference the…
yassassin
  • 3,165
  • 6
  • 26
  • 30
160
votes
22 answers

@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 Foundation @IBDesignable class PlaceholderTextView:…
Albert Bori
  • 9,324
  • 9
  • 47
  • 76
1
2 3
99 100