Questions tagged [interface-builder]

Interface Builder is a visual design tool used to create user interfaces for Apple's macOS and iOS platforms.

is a visual design tool used to create user interfaces for Apple's and platforms. It is part of , Apple's . allows , and developers to visually compose interfaces for applications. The resultant interface is stored as a file (short for XML Interface Builder) and is compiled to a file at build time (short for NeXT ).

6236 questions
36
votes
4 answers

What is Referencing outlet collection in Xcode4 Interface Builder?

Here, I have pointed to the Referencing Outlet Collection. I am not able to figure out its usage in XCode4. I am asking for the `new feature of REFERENCING OUTLET COLLECTION in InterfaceBuilder of XCode4".
sagarkothari
  • 24,520
  • 50
  • 165
  • 235
36
votes
6 answers

How to place UIBarButtonItem on the right side of a UIToolbar?

I have designed a view with a toolbar that appears modally in Interface Builder. I have a UIBarButtonItem that is on the left hand side, which I would like to appear on the right hand side of the toolbar. How can I do this in IB, or via code?
Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556
36
votes
10 answers

How do I create a 1px line in Interface Builder?

Note, I'm looking to make a 1px line, not a 1pt line. Meaning it should be 1px regardless of screen scale (so 0.5pt on Retina devices). I can do this programmatically, but can I do it in the Interface Builder? For example I cannot set a UIView to…
i_am_jorf
  • 53,608
  • 15
  • 131
  • 222
36
votes
4 answers

No Round Rect Button in Xcode 5?

Is drag and drop of round rect button no longer available in Xcode 5? I can't seem to find it in the Interface Builder. I was guessing that this is one of the changes in iOS 7, but I just wanted to make sure.
juminoz
  • 3,168
  • 7
  • 35
  • 52
35
votes
7 answers

Cannot zoom in and out of nib in the new Interface Builder

Have I missed something obvious or is it not possible to zoom freely in and out of an open nib file, within the integrated Interface Builder of Xcode 4?
Luke
  • 11,426
  • 43
  • 60
  • 69
35
votes
14 answers

IB Designables: Failed to render and update auto layout status

I have a custom view (xib) that has a UIButton inside of it, I made id IBDesignable doing the following: UserView.swift import UIKit @IBDesignable class UserView: UIView { @IBOutlet var view: UIView! @IBOutlet weak var userButton:…
Jonathan Solorzano
  • 6,812
  • 20
  • 70
  • 131
35
votes
4 answers

How do you right align a horizontal UIStackView?

I've yet to find an answer for this anywhere and I'm not sure if it's possible, but I'm trying to right align a horizontal UIStackView, so that if subviews are hidden they move towards the right side not the left. Either programmatically (in Swift)…
35
votes
2 answers

How Can I have multiple widths and heights of subviews in a UIStackView

Say for example I want to add 3 buttons to a stack view. Button1 is 200 * 200 (1) Button2 is 150 * 150 (0.75) Button3 is 100 * 100 (0.5) How can I accomplish this in interface builder?
dubbeat
  • 7,706
  • 18
  • 70
  • 122
35
votes
4 answers

XCode 7: Launch screens may not set custom classnames

I created a simple application using Xcode 7 Beta 2. The application simply contains class MyAppDelegate, MyViewController, MyMain.storyBoard and MyLaunchScreen.storyboard. After recompiling the application with Xcode 7 Beta 4 the error "Launch…
Awsed
  • 9,094
  • 5
  • 26
  • 25
35
votes
13 answers

Xcode 6: Build hangs and Interface Builder Cocoa Touch Tool starts allocating all RAM

I’m having an issue to which I haven’t been able to find a solution just by searching here or on Google. I’m building a project which is shared by multiple developers. For some reason I’m the only one with this issue. I checked out the code several…
HotFudgeSunday
  • 1,403
  • 2
  • 23
  • 29
35
votes
2 answers

How to connect storyboard to viewcontroller

In the new xcode 5 how do in interface builder you use to have a drop down menu there to connect your storyboard viewcontrollers to your classes how is this done now?
4GetFullOf
  • 1,738
  • 4
  • 22
  • 47
34
votes
2 answers

Loading custom UIView from nib, all subviews contained in nib are nil?

I have a custom UIView object with a nib that defines the view/subview layout. My outlets are connected, and when I init the object from initWithFrame: everything is in order. The problem I'm having is when I'm using IB to embed the UIView into…
strahlr
  • 343
  • 1
  • 3
  • 7
34
votes
8 answers

XIB File opens like an XML in XCode but opens correctly with Interface Builder

When I double-click my file StartWindow.xib in Xcode 4, it does not open into the integrated Interface Builder; it opens like a XML file. I can open all other xib files and they display as expected. I can open it with the old Interface Builder via…
mabstrei
  • 1,200
  • 3
  • 13
  • 28
34
votes
1 answer

Tint UIButton's image from interface builder with UIImageRenderingModeAlwaysTemplate

I have a UIButton whose image property I'm setting from interface builder. I want this image to be tinted with the superview's tintColor. With code, I can set the image's rendering mode to UIImageRenderingModeAlwaysTemplate, but how do I do this…
rounak
  • 9,217
  • 3
  • 42
  • 59
34
votes
3 answers

No horizontal scrollbar in Xcode's Interface Builder

When I try to edit a storyboard file in Xcode (Version 5.1.1 (5B1008) under OS X 10.9.3) I can only see the vertical scrollbar. Moving around in the horizontal direction between view controllers is not possible. The horizontal bar doesn't show when…
Kamil
  • 353
  • 1
  • 3
  • 5