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
3
votes
1 answer

Sibling object not available in menu when setting Auto Layout constraint in Storyboard

The Apple guide "Adding Auto Layout Constraints with the Pin and Align Tools" states: To create a constraint related to another item that is not the nearest neighbor, click the black down arrow in the text field and choose another nearby item from…
pkamb
  • 33,281
  • 23
  • 160
  • 191
3
votes
1 answer

How can I make an NSViewController communicate with an NSToolbar in Swift?

I'm making a simple OS X app that looks like that in Interface Builder: Backstory The MainView is a subclass of NSViewController, and the toolbar is a simple NSToolbar I built with the Interface Builder. By default, the NSToolbar items are enabled,…
LaX
  • 453
  • 5
  • 16
3
votes
2 answers

How do I programmatically duplicate UIViews built in interface builder?

I want to build up a sub-UIView in Interface Builder (contained within a UIScrollView) with some UILabels contained, I then want to programmatically "copy" this view adjust its left position (by multiples of its width) to achieve a "floating" left…
3
votes
3 answers

Horizontally align UILabel and UIImageView together inside of a full width UIView

I have a UIView in my layout that is pinned to the sides of my VC. Inside of that I have an icon UIImageView and a UILabel that is next to that. I would like both of those to be center aligned inside of the UIView no matter how long the text inside…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
3
votes
3 answers

Why doesn't IB see my IBAction?

I've been staring at this for way too long. There's nothing fancy happening here, and I've done this dozens of times, yet Interface Builder steadfastly refuses to provide me an action target for -(IBAction)slideDirections. I'm at the point where I'm…
Dan Ray
  • 21,623
  • 6
  • 63
  • 87
3
votes
1 answer

Auto Layout: Responsive autoshrinking multiple labels

I make responsive skinning to support all iPhones from 4S till 6+. I have 2 labels and 3 buttons on one screen and I want to auto shrink them by using minimum font scale option and of course constraints. It is worth noting that for activate a…
3
votes
2 answers

How to get a button to stay on the right in a cell for all sizes?

I am trying to add a custom checkbox button (https://codereview.stackexchange.com/questions/69123/ibdesignable-uicheckbox) to my Prototype Table View Cell in my Storyboard. Here is an album ending starting with how it looks on all 3 iPhone sizes and…
nintyapple
  • 227
  • 1
  • 3
  • 13
3
votes
0 answers

UITextView only displays first line of text

I have a UITextview. It has enough text in it that it flows into multiple lines. However when I run the app on a device, the text does not flow onto subsequent lines, it's as if the text is carrying on beyond the bounds of the view. All the settings…
fredley
  • 32,953
  • 42
  • 145
  • 236
3
votes
1 answer

NSComboBox focus ring is not aligned correctly

When I create a NSComboBox and I set the control size to small, the focus ring is not aligned correctly. I noticed the same problem in the xcode interface (cfr. screenshot). Your help is welcome.
David Mangon
  • 150
  • 1
  • 2
  • 10
3
votes
1 answer

interface builder what is Object template

in the storyboard there is a object entity that can be added to a view controller. My problem is i am not sure of its purpose. What is its usefulness and also can you show its usage and how the same thing can be done programatically. I've tried…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
3
votes
1 answer

Is it possible to have other UIControls on a UITableView?

I have a UITableView with 3 sections inside of a UIViewController. Is it possible to have other controls above the UITableView for example a UISlider or a UIImage? If so, how can this be accomplished? Note: These controls should not be in a…
Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556
3
votes
2 answers

Struggling With NSWindowController window Outlet

I'm sure this is a really simple problem but I am pulling my hair out over it! I have a subclass of NSWindowController called WinAController. This has been created in IB and is in MainMenu.xib. I have a separate nib called WinA.xib that contains…
Garry Pettet
  • 8,096
  • 22
  • 65
  • 103
3
votes
1 answer

iOS. Interface Builder @IBInspectable crashes

I'm trying this IBDesignable. But as always it don't work. My controller code: @IBDesignable class MainMenuViewController: UIViewController { @IBOutlet weak var languagesButton: UIView! @IBOutlet weak var keyboardSettingsButton: UIView! …
Vasyl Khmil
  • 2,548
  • 1
  • 20
  • 36
3
votes
4 answers

UICollectionView flickers thin "see through" lines between cells when scrolling

I have a UICollectionView with cells that are filled with a background image. The collection view has line spacing = 0. This has been working perfectly well on iOS 6.1, but when tested on the iPhone 6 with iOS 8.1.3 I see thin "see through" lines…
Lukas Kalinski
  • 2,213
  • 24
  • 26
3
votes
5 answers

Unable to see custom classes in Interface Builder drop down

I'm using Xcode 6.1.1, and cannot select my custom class from the drop down. Because of this, I believe it is causing several other related issues (see below). Symptoms: When using the IB drop down to choose a custom class, none of the custom…
Senseful
  • 86,719
  • 67
  • 308
  • 465