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
34
votes
9 answers

UIButton fails to properly register touch in bottom region of iPhone screen

I have an app with many different buttons arranged in a calculator like, square / rectangular format. It is actually extremely similar to the default iOS calculator. There are approximately 6 rows with 4 columns each of buttons. Problem The problem…
Iowa15
  • 3,027
  • 6
  • 28
  • 35
33
votes
3 answers

Interface Builder Zoom in Zoom Out

Is there a way to zoom in/zoom out in the Interface Builder within Xcode 4?
Yogesh Agarwal
  • 2,610
  • 3
  • 27
  • 31
33
votes
1 answer

How to copy or duplicate a ViewController in Interface Builder?

Is there a way to copy & paste/duplicate the View Controller Scene in Xcode using the Interface Builder and not code?
Chrisicut
  • 357
  • 1
  • 4
  • 10
33
votes
2 answers

What's the best way to call an IBAction from with-in the code?

Say for instance I have an IBAction that is hooked up to a UIButton in interface builder. - (IBAction)functionToBeCalled:(id)sender { // do something here } With-in my code, say for instance in another method, what is the best way to call…
iwasrobbed
  • 46,496
  • 21
  • 150
  • 195
33
votes
10 answers

Empty white space above UITableView inside a UIView

I'm trying to position a TableView inside my ViewController view but leaving a 44 height gap between the bottom of the navigation bar and the top of the table. I then wanted to place a UITextField inside that gap to act as a stationary header. For…
Fenda
  • 1,385
  • 3
  • 14
  • 24
33
votes
4 answers

How can I create Yosemite-style view with translucent/blurry background?

In Yosemite sidebars have a semitransparent "vibrant" background. How can I create a view like that in 10.10/Xcode 6? Can I give any view such background? I've found that NSOutlineView will default to such background when you give it "Source list"…
Kornel
  • 97,764
  • 37
  • 219
  • 309
32
votes
6 answers

Xcode 4 Interface Builder: How to set File's Owner

I have myController.h and myController.m defined, and proceeded to create a myController.xib with the Wizard. I can't, however, connect the controls from the xib file to the class interface. Usually when I drop the connection cross hair on the…
Haoest
  • 13,610
  • 29
  • 89
  • 105
32
votes
7 answers

UISegmentedControl text with multiple lines?

How can I make the text in one of the buttons in my UISegmentedControl span multiple lines?
Jason
  • 14,517
  • 25
  • 92
  • 153
32
votes
5 answers

How to make IBOutlets out of an array of objects?

I want to make an array with a bunch of UIImageViews I have in Interface Builder. Instead of having 20 or 30 IBOutlet UIImageView *img1; and linking them all that way, and then putting them into an array, is there a way to declare an array of…
Marty
  • 5,926
  • 9
  • 53
  • 91
31
votes
4 answers

Xcode 9 - Localization Issue Warning Storyboard

I am currently testing out Xcode 9 beta 3 at the time of this writing. When viewing the storyboard I am receiving a list of warnings indicating that in other languages/regions my fixed constraint will pose an issue. The application is fairly complex…
Simon
  • 6,413
  • 6
  • 34
  • 57
31
votes
6 answers

Using custom fonts in interface builder

I've searched this site but I just found unanswered questions. I've loaded a custom font into my xcode project. A [UIFont fontWithName:@"Laconic-Light" size:19] works. But interface builder doesn't like the font. I can't use it with IB it always…
david
  • 3,553
  • 4
  • 28
  • 39
31
votes
8 answers

Unable to connect IBOutlet from storyboard to UIView subclass

I am able to right-click and drag from my custom UIView subclass file to the storyboard elements to connect them, but unable to do so the other way around. I believe this is an Xcode bug. Is there anything that I can do to fix this? This is not the…
Chan Jing Hong
  • 2,251
  • 4
  • 22
  • 41
31
votes
3 answers

Borderless NSButton turns gray when clicked

I am making a little application with three NSButtons with an image set. These buttons have no border nor background. However, when I click a button it turns into a gray rectangle. How can I fix this? Thanks.
user142019
31
votes
4 answers

How to change height of text field?

Is there a way to change the height of a text field in IB? If not, what is the proper way to do it in code?
4thSpace
  • 43,672
  • 97
  • 296
  • 475
31
votes
4 answers

Interface Builder appears blurry on retina display in Xcode 6.3

I just recently downloaded the latest public release of Xcode (6.3) and I noticed the storyboard for my app is now low res on my Retina MacBook Pro. Images, text and standard UI elements all appear blurry. On the actual device everything looks fine…
Max Stein
  • 320
  • 2
  • 7