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

Check whether UIView is loaded from a Nib/Storyboard or was created programmatically

Is there any way to identify whether a UIView is loaded from a nib file/Storyboard, or instantiated dynamically from user code? I am creating a custom UIView subclass so I have full access to instance methods. Would checking whether initWithCoder:…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
3
votes
2 answers

addSubview and autosizing

How does one add views to a window, so that the views are resized to fit within the window frame? The problem I'm making a sheet window containing 2 views, where only one of them is visible at a time, so it's important that the views have the same…
neoneye
  • 50,398
  • 25
  • 166
  • 151
3
votes
1 answer

Xcode 6.1 - I can't modify the elements of a xib

I have Xcode version 6.1 on Yosemite. I downloaded an Xcode project from git and when I select a xib file (create with Xcode version 6.1) I see that all elements of xib file are disable: I try to download again the project and I make a clean of the…
MaTTP
  • 953
  • 2
  • 12
  • 27
3
votes
2 answers

Xcode 6.1: UIViews disappearing in interface builder when adjusting frames

I'm fairly new to Interface Builder and I'm trying to practice it with a very simple view. Basically, I have 3 UIViews on my view controller. The problem I am having is that whenever I adjust the frame of 1 of the UIViews, the other 2 will…
Lneuner
  • 1,090
  • 1
  • 9
  • 19
3
votes
1 answer

viewDidAppear & viewDidLoad Are Are Initializing Positions Too Late

I am looking to update a UIView thats in a storyboard (and instantiated from the storyboard) when it loads in the app. I need to position a few icons in a dynamic way (that the interface builder doesn't let me do quite yet). However, if I put my…
Aggressor
  • 13,323
  • 24
  • 103
  • 182
3
votes
3 answers

Interface Builder background color => clear color?

I've setup some background colors for my Labels in order to position them. Now that they are well in place, I would like to reset their background color to none, or clearColor. But I don't find any way to achieve this in IB, I don't find any "no…
jchatard
  • 1,881
  • 2
  • 20
  • 25
3
votes
2 answers

UIView frame be changed to 0,0,0,0 when another UIView be resized in Xcode 6.1 Interface Build

the problem is shown in the Video https://dl.dropboxusercontent.com/u/16843197/Xcode%20Interface%20Builder%20-%20problem.mov how can I solve it? thanks for your help.
陳默司
  • 31
  • 2
3
votes
1 answer

How to set in Xcode Interface Builder constraints so that views change their width or height accordingly?

I'm using Xamarin Studio for iOS development and I've just started to use the Xcode Interface Builder and it is giving me headaches. My Xcode version is 5.1.1(5B1008) and I'm on Xamarin Studio 5.5 build 227 with Xamarin.iOS 8.2.0.193 on Starter…
Uriel Arvizu
  • 1,876
  • 6
  • 37
  • 97
3
votes
0 answers

Get the runtime dimensions of an interface builder UIView

When I set my UIView in an interface builder to be equal widths to the super view it sets it at 600. When I launch my app and print out the width of the UIView it says 600. The screen width is only 320. How can I get the UIView to be the width of…
Aggressor
  • 13,323
  • 24
  • 103
  • 182
3
votes
0 answers

iOS 8 today widget notificationCenterVibrancyEffect in Interface Builder

When designing a today extension (widget) for the iOS 8 notification center with Interface Builder you can drag a Visual Effect Views with Blur and Vibrancy to your storyboard. To match the vibrancy effect of the notification center you should use…
Cornelius
  • 4,214
  • 3
  • 36
  • 55
3
votes
0 answers

Autolayout in XIB with UIToolBar hangs Xcode 6.0.1

I changed a Xib(which had an UIToolBar as one of its components) to auto layout and started adding constraints. It hanged the Xcode. The Interface builder cocoa touch tool was taking nearly 100% of the CPU. I recreated the xib without the toolbar…
3
votes
0 answers

How to add UICollectionViews to Universal Storyboard and different flowLayout for iPhone and iPad

I am developing an Universal app. This app should work in iPhone and iPad. I want to use one storyboard for both devices. I need a UICollectionView like the pictures. I am using autolayout in the cell, but I don't know how to solve this. I am using…
3
votes
0 answers

How to set width of view to be half width of its superview in Xcode 6

Trying to understand autolayout in Xcode6/Interface Builder. How can I set the width of a view to be half (or like 10% or whatever) width of its superview in Xcode 6/Interface Builder using constraints?
Jonny
  • 15,955
  • 18
  • 111
  • 232
3
votes
2 answers

Xcode 6.0/6.1 Interface Builder resizes views to fit whole content when clicked on the corner grip to resize

I think this is an obvious bug on Xcode 6.0.1 but I'm searching for at least a workaround. In interface builder, I have an image view that is smaller in dimensions than the image that it contains. Here is my newly created, fresh nib with just an…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
3
votes
0 answers

detailTextLabel on cell created in storyboard with dynamic prototype appears only after cell is selected?

I am adding cell like below. Before selecting cell, only textLabel is able to be seen, after selection detailTextLabel getting appear too. Why detailTextLabel not on screen from beginning? override func tableView(tableView: UITableView,…
János
  • 32,867
  • 38
  • 193
  • 353
1 2 3
99
100