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

Why is the UITextField placeholder text decreasing in size?

I have a peculiar problem in Interface Builder with placeholder text. Some of the placeholder text is smaller than the rest and I can't find a reason why. When I duplicate a UITextfield with full-sized placeholder text it changes instantly to a…
ClintChil
  • 35
  • 6
3
votes
1 answer

Monotouch Classes

What does MonoTouch.Foundation.Register do? For example: [MonoTouch.Foundation.Register("CalendarDayViewController")] When do I have to add the above? For a .xib to recognize it? Or in place of a .xib?
Bryan
  • 17,201
  • 24
  • 97
  • 123
3
votes
2 answers

Make view loaded from nib respect superview's top layout guide (Navigation Bar Bottom)

I have a UIViewController with a custom UINavigationBar (inherited from it's superclass). In this controller I am instantiating another UIViewController and adding it's view as a subview in my view like this: // I believe this should be 'as…
Thanos
  • 844
  • 2
  • 11
  • 27
3
votes
2 answers

Is slicing a PDF resource in an asset catalog broken?

When adding a PDF resource to an asset catalogue, selecting "vectors", and configuring the slicing, this slicing does not behave as expected. The image gets stretched in Interface Builder and on the device weird results can be seen. However I don't…
Joris Mans
  • 6,024
  • 6
  • 42
  • 69
3
votes
2 answers

Ways to delete uninstalled (greyed) constraints in XCode

Whenever an auto-layout constraint is "deleted" from the Size Inspector, it's not actually deleted, merely "uninstalled". After this point, it's still there, just faded/greyed out, visible on the scene hierarchy on the left and when "All" is…
MikeOShay
  • 522
  • 1
  • 7
  • 17
3
votes
2 answers

What is the multiplier in Interface Builder for?

What does the multiplier, which is a property of a constraint in Auto Layout, do?
Cesare
  • 9,139
  • 16
  • 78
  • 130
3
votes
3 answers

How to get multiple copies of a UIView loaded from a nib?

I want to use a UIView hierarchy multiple times (the nib object is a template). Unfortunately, UIView does not conform to so [cell.contentView addSubview: [[templEditCellView copy] autorelease]]; does not work. I wasn't surprised, since…
dmaestro12
  • 883
  • 7
  • 15
3
votes
2 answers

Interface builder problem: When hooking up an IBOutlet, getting "this class is not key value coding-compliant for the key"

Here is what I do: 1) Create New UIViewController subclass , tick with NIB for interface builder 2) In the header: @interface QuizMainViewController : UIViewController { UILabel* aLabel; } @property (nonatomic, retain) IBOutlet UILabel*…
Robert
  • 37,670
  • 37
  • 171
  • 213
3
votes
1 answer

iOS 7 vs iOS 8 Constraints differ in sizes

While working with Auto Layout and Constraints in the Interface Builder, I noticed that I am getting different results with the same constraints when I run iOS7 vs iOS8 simulator. For example, I have a very simple Trailing Constraint set on a…
MiMo
  • 4,905
  • 3
  • 22
  • 23
3
votes
3 answers

Custom view with nib as subview doesn't seem to be loading

I've created a custom view that loads its content from a nib, like this: /* PricingDataView.h */ #import @interface PricingDataView : UIView { UIView *contentView; } @property (nonatomic, retain) IBOutlet UIView…
Ben Collins
  • 20,538
  • 18
  • 127
  • 187
3
votes
1 answer

Custom fonts working in Interface Builder (Xcode 6), but not a device

I added fonts by dragging and dropping in my projects, and I made sure that they are added to target. I can use them in Interface Builder and they show correctly, however when I run it on a device or an emulator, it replaces it with system fonts. I…
Stefan Salatic
  • 4,513
  • 3
  • 22
  • 30
3
votes
3 answers

How to convert points to the XCode font size

I have the Photoshop file contains iOS application's design and I need to get info about font sizes for all labels and other controls. The size in Photoshop is shown in points by default, so how can I convert this value to the XCode one? For…
FrozenHeart
  • 19,844
  • 33
  • 126
  • 242
3
votes
2 answers

Resize superview while adding subviews dynamically with autolayout

I have to show a popover on iPhone screen with multiple "Switch" controls. And to add and remove subviews on/from popover view with switch on/off actions respectively. For better illustration of the situation see below images. The above popover view…
Rameswar Prasad
  • 1,331
  • 17
  • 35
3
votes
0 answers

Bug in Storyboards?

I'm trying to follow a YouTube tutorial on using constraints, etc and it gets you to set up a basic Storyboard along with some different coloured views. I can set them up fine, and put the widths, and heights in but as soon as I try to resize a view…
Phil
  • 2,995
  • 6
  • 40
  • 67
3
votes
3 answers

Using Interface Builder efficiently

I am new to iPhone and objective c. I have spent hours and hours and hours reading documents and trying to understand how things work. I have RTFM or at least am in the process. My main problem is that I want to understand how to specify where an…
twerdster
  • 4,977
  • 3
  • 40
  • 70