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
2 answers

Can I include flexible space in a UIScrollView using Autolayout?

I have a scroll view that contains different options for logging into an application. There are two buttons that I would like to anchor to the bottom of the view, unless the view becomes too small, then the view should scroll. Having no constraint…
James Webster
  • 31,873
  • 11
  • 70
  • 114
3
votes
2 answers

Why don't my buttons go?

I'm setting up two buttons inside UITableViewCells. The cell itself shouldn't ever respond to selection, just my two buttons. Here's the code in question: -(UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath…
Dan Ray
  • 21,623
  • 6
  • 63
  • 87
3
votes
2 answers

Cocoa -Adding a menu item programmatically

How can I add a menu item inside a sub menu programmatically?
user377419
  • 4,681
  • 13
  • 42
  • 56
3
votes
1 answer

How are binding specified for Interface Builder plugins?

I'm creating an Interface Builder plugin for an NSView subclass. I've been following the Interface Builder Plug-in Programming Guide but it's not answer all my questions. My class has one NSString property and 4 NSColor properties which I want to…
Benedict Cohen
3
votes
2 answers

How to make a different design for small iPhones and iPhone 6 plus using size classes?

Is is possible to make a different design in Interface Builder for iPhone 6 plus and other iPhones using size classes? I need only portrait mode. According to some tutorials (http://swiftiostutorials.com/using-size-classes-xcode-6/) it seems that it…
Avt
  • 16,927
  • 4
  • 52
  • 72
3
votes
1 answer

UI not updating on device after updates in Interface Builder

I have few views on a view controller. I am updating their positions thorough constraints, but the app is always showing me the previous positions of the views. After deleting the constraints, it is still showing me the previous positions. Please…
TechChain
  • 8,404
  • 29
  • 103
  • 228
3
votes
1 answer

Custom cell in UITableView shifts right after swipe to edit

I just want a simple UITableView with the ability to slide left to delete. Everything works okay except the right constraint on the textview in my prototype cell seems to get shifted after swiping to delete. Here's my code for the table: func…
Connor Hargus
  • 317
  • 2
  • 11
3
votes
1 answer

Xcode–UITextView text being cut short

I have a UITextView in my View controller, added from the Interface Builder. When I disable the "editable" option under "Behavior", some text gets cut from the text view, see screenshot.
Cplusplusplus
  • 337
  • 1
  • 3
  • 16
3
votes
0 answers

@IBDesignable rendering error in interface builder

I have a custom view with an image in it. And i get an error when the interface builder try's to render the Custom view. I have 6 of these views and i get 3 different errors. Failed to update auto layout status: interface builder cocoa touch …
ilan
  • 4,402
  • 6
  • 40
  • 76
3
votes
8 answers

When to use InterfaceBuilder to build views?

Going thru both the extensive online documentation AND the various code samples in the dev center I am perplexed. Apple's recommends to ALWAYS use IB when creating your views, and yet, in many of the code samples, views are created entirely in code…
Bachalo
  • 6,965
  • 27
  • 95
  • 189
3
votes
3 answers

Is it possible to have UITabBarItem without image, but with bigger text instead?

Is it possible to have UITabBarItem without image, but with bigger text instead? e.g.: to have text with full height?
marko
  • 1,336
  • 2
  • 12
  • 25
3
votes
2 answers

IBInspectable not rendering Layer of NSView

I want to edit border width and background color of an NSView and made those values IBInspectable: @IBInspectable var borderWidth: CGFloat{ set{ layer?.borderWidth = newValue } get{ return layer!.borderWidth …
Christian
  • 129
  • 9
3
votes
1 answer

Matching Xcode color space with Digital Color Meter

In Xcode Interface Builder, I use Digital Color Meter to find the color code of an item as follows: https://i.stack.imgur.com/mWrh0.png The values for (R,G,B) are (255,172,40). Then I select a label to set it's color same. I proceed as…
Kamil
  • 968
  • 1
  • 8
  • 18
3
votes
1 answer

Can I have a NSStepper without max?

In IB you can configure min and max for a NSStepper, but... what about if I don't want to limit the user with a max value. Can I do it? How?
Juanjo Conti
  • 28,823
  • 42
  • 111
  • 133
3
votes
2 answers

IBInspectable UIView property

Can I make my UIView @property inspectable? @interface Superview : UIView @property (nonatomic, weak, readonly) IBInspectable UIButton *stopButton; @property (nonatomic, weak, readonly) IBInspectable PKCircleProgressView…
BergP
  • 3,453
  • 4
  • 33
  • 58