Questions tagged [xcode-storyboard]

A storyboard is a visual representation of the user interface of an iOS, tvOS, watchOS or macOS application, showing screens of content and the connections between those screens.

A storyboard is composed of a sequence of scenes, each of which represents a view controller and its views; scenes are connected by segue objects, which represent a transition between two view controllers. Since iOS 9 and Xcode 7 we can keep reference to another storyboards.

Xcode provides a visual editor for storyboards, where developer can lay out and design the user interface of the application by adding views such as buttons, table views, and text views onto scenes. In addition, a storyboard enables a developer to connect a view to its controller object, and to manage the transfer of data between view controllers. Using storyboards is the recommended way to design the user interface of the application because they enable developer to visualize the appearance and flow of the user interface on one canvas.

937 questions
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
188
votes
24 answers

Xcode 8 - IB Designables - Failed to render and update auto layout status, The agent crashed

I recently upgraded to Xcode 8 and I am having issues with the Storyboard. If I open the project and I don't have the Storyboard open, it will compile and run just fine. Once I open up the Storyboard, I get multiple errors about IB Designables as…
Alan
  • 9,331
  • 14
  • 52
  • 97
167
votes
6 answers

What is the difference between a .xib file and a .storyboard?

Can someone explain in simple words the difference between .xib and .storyboard?
gsach
  • 5,715
  • 7
  • 27
  • 42
104
votes
16 answers

Modify UIImage renderingMode from a storyboard/xib file

Is it possible to modify a UIImage's renderingMode from a storyboard or xib editor? The goal is to apply tintColor to the particular UIImageView object.
Artem Stepanenko
  • 3,423
  • 6
  • 29
  • 51
74
votes
19 answers

Xcode storyboard: Internal error. Please file a bug

While editing in the storyboard, specifically assigning a view controller to a specific class, I suddenly encountered this error when I wanted to run the project. Main.storyboard: Internal error. Please file a bug at bugreport.apple.com and attach…
Justin Leo
  • 1,975
  • 3
  • 15
  • 14
70
votes
1 answer

IOS7, Segue and storyboards - How to create without a button?

I currently have a login View and an Application view, I have successfully implemented validation on the login view and I need to programmatically shift to the application view on successful validation. I understand I can add a segue to the login…
LiamB
  • 18,243
  • 19
  • 75
  • 116
66
votes
5 answers

UITableView with static cells does not appear

I have created a new Xcode project using Storyboards (tab view template). I added a couple of view controllers to my storyboard, and wanted to use a UITableView with static cells for one. I created it, but when I run in the simulator the cells don't…
adum
  • 2,890
  • 3
  • 25
  • 30
66
votes
1 answer

XCode Storyboard merging

Is there a way to merge XCode 4.2 Storyboard files? I'm working with another developer on an iPhone project and all my attempts at merging changes into a storyboard file have met with failure and after which Xcode is no longer able to load the…
sipsorcery
  • 30,273
  • 24
  • 104
  • 155
61
votes
4 answers

how to make UILabel autosize text in storyboard (or interface builder), NOT programmatically

Every time I click-and-drag a UILabel to storyboard, and then add text to Text field, the text is cut off, so I then have to click-and-drag the UILabel to stretch it big enough so that the text appears. I can't figure out how to make the UILabel…
Doug Null
  • 7,989
  • 15
  • 69
  • 148
59
votes
23 answers

StoryBoard Assistant Editor stopped showing associated file

Xcode storyboard assistant editor stopped showing related files. "Automatic" is selected and "Class" is filled in Identity Inspector. It was working before, but know it has stopped. "Auto" or "CounterPart" modes are still woking for other files…
Add080bbA
  • 1,818
  • 1
  • 18
  • 25
57
votes
10 answers

How to remove constraints programmatically that is added from storyboard?

I have googled but not find out answer. So I need to ask. I have one home screen. When User is logged in it will display one view as like bellow Now When User logged out and visiting home page he will see above layout but without center boxed…
Dharmik
  • 2,325
  • 3
  • 27
  • 37
52
votes
8 answers

UIPageViewController and storyboard

I'm trying to configure a UIPageViewController SPECIFICALLY from storyboard: TutorialPageViewController.h #import @interface TutorialPageViewController : UIPageViewController
Benjamin Toueg
  • 10,511
  • 7
  • 48
  • 79
46
votes
27 answers

Could not find a storyboard named 'MainStoryBoard' in bundle NSBundle

I have started a new app a few days ago and began working with the simulator to test it. I started as an empty project and manually added the storyboard. The simulator builds and runs my app just fine but when I try to build to my iPhone I get the…
chriskievit
  • 1,555
  • 1
  • 11
  • 14
44
votes
4 answers

What is the difference between launchscreen.storyboard and main.storyboard

I googled the two word together but could not find anything. I have never used it. Is there any necessity for it although we have main.storyboard.
Rishab
  • 1,901
  • 2
  • 18
  • 34
43
votes
5 answers

Autoshrink setting for UIButton in Storyboard

There is a setting for UILabel in storyboard that allows setting auto-shrink configurations, as shown below: But I am unable to find the same for UIButton's textlabel. I am aware that I can set this programmatically but curious to know if there's a…
Evol Gate
  • 2,247
  • 3
  • 19
  • 37
1
2 3
62 63