FAQ Database Discussion Community


iOS -custom xib file not appearing as inputAccessoryView of UITextField

ios,iphone,xcode,uiview,interface-builder
I'm following this video (except im linking the custom view in code not in IB), but I'll explain what's happening. I have created a custom view that extends off UiView. It is created from an xib file. Here is a photo of the xib file in interfacebuilder: Notice that the...

Align UIBarButtonItem Title to prevent overlapping of other Buttons?

ios,user-interface,interface-builder,xcode-storyboard
I want to create a header toolbar like shown in the image below. It is from the web view of the Twitter app. I created a UIToolbar and put it at the top. Then I inserted the Buttons left and right and changed the Identifier to get the correct symbols....

Is it possible to align 3 Views side by side with same width in auto layout by only using interfacebuilder?

ios,xcode6,interface-builder,autolayout
I have a quick question according auto layout. Maybe I am missing something, but since two hours I am trying to align 3 views next to each other with same width. My goal is that each view is using 1/3 of the screens with. After autorotation all views should have...

Multiple Choice App Feature

ios,ios8,interface-builder,nslayoutconstraint
I am trying to create a simple multiple choice quiz feature for an app. I have a pList with all the questions, multiple choice options, and the answer. The questions have a different number of multiple choice options. Most questions have 4 options, but others have 5, 6, or 7....

XCode (Interface Builder): Update Frames & Constraints?

ios,xcode,xcode6,interface-builder
I have been learning Xcode and iOS and things are going well with coding but I am confused about a few options in interface builder. It seems that when I add a contraint I can choose to "Update Frames" and then either "Items of new contraints" or "All Frames" but...

Can't set custom class for cell in table view controller

ios,uitableview,swift,storyboard,interface-builder
I'm really going crazy: I can't simply set my custom class for a UITableViewCell and I really don't know why. My project In my Storyboard I have a table view controller set to use ManageListsTVC.swift. I want use a custom cell with dynamic prototypes so I create a custom class...

Create a uiview xib and reuse in storyboard

xcode,uiview,autolayout,interface-builder,xib
I typically like to design my views in interface builder. Sometimes I need to create a single view in a xib that can be reused in multiple view controllers in a storyboard.

Interface Builder doesn't show objects

ios,iphone,interface-builder,xcode6
I'm working with storyboards in XCode 6.1.1 and my deployment target is set to 7.0 for an iPhone Application. I was working with a scene weeks ago and when I got to make some other changes I realized that objects doesn't show up on IB and in document outline the...

iOS Table View XIB layout issue

ios,xcode,uitableview,interface-builder,xib
I have declared x3 UITableView's in Xcode XIB interface builder: Then I ran current UIViewController in iPad Air iOS Simulator: As you see, top cell of the first UITableView view differs to second one / third one. Why is that so? How to make these UITableView'look like the same?...

UIBarButtonItem in navigation bar is highlighted when selected but UIBarButtonItem in toolbar is not

ios,uitableview,swift,interface-builder,uibarbuttonitem
I have a simple UITableViewController with a NavigationController as the root view controller. I have added an "Options" UIBarButtonItem to the navigation bar and a "Start" UIBarButtonItem to the toolbar, shown below: . The issue that I am experiencing is that the "Options" button will become highlighted when pressed, like...

Why is the UITextField placeholder text decreasing in size?

ios,iphone,xcode,interface-builder
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 smaller font. Xcode 6.1.1 on Mac OS X...

How do I subscribe to TextField's TextChanged event in Xcode

xcode,osx,swift,interface-builder
I've recently started working on some test projects to get the feel for OS X development with Xcode. I come from Windows, so I might not be making much sense here. How would I subscribe to certain "events" in Swift? I have just learned how to connect actions to UI...

xcode 6 - red constraints

ios,xcode,xcode6,interface-builder,nslayoutconstraint
I have been trying to tackle constraints recently. I have a mildly complex view. When connecting my constraints some of my constraints turn red. Simulator still runs, but my labels and buttons are not in place. Why are constraints red?

DAE file specified in attribute inspector is not loaded by UIViewController

swift,xcode6,interface-builder,scenekit
I created a new project using the iOS game template on Xcode 6.1.1, the options were: Language: Swift Game Technology: SceneKit Device: Universal The app runs ok "as is", but now I want to specify the .dae file directly from the Interface Builder on Xcode, so I changed the method...

How to set the default writing direction for NSTextView?

osx,swift,cocoa,interface-builder,nstextview
I'm trying to set up a text view that a user can type Hebrew text into from right-to-left. Currently it defaults to a left-to-right text direction, which the user can manually change by right-clicking and selecting "Writing Direction > Right to Left", but what I need is for the text...

How to reproduce this “offset behavior” programmatically?

ios,uikit,interface-builder
Since iOS 7, Apple encourages developers to show content behind navigation bars and other translucent elements. Let's say that I have a view controller embedded in a navigation view, adding to this view controller a map view and extending the edges of the map view to the bounds of the...

How to dismiss an OS X modal sheet with *either* ENTER or ESC key

osx,cocoa,interface-builder
My application launches a modal sheet that has several buttons. One of them is the default button (key equivalent \r) and pressing the ENTER key on the keyboard dismisses the sheet, as expected. I would like to have the same effect to also be achieved if the user presses the...

Seperation between navigation bar and table view disappear

ios,uitableview,interface-builder,uinavigationbar,uistoryboard
I am creating an app with a navigation bar and a table view. For some reason, the navigation bar lacks its separator between it and the table view. In the Interface builder, it looks like it does have it. However, when I run my app in the simulator (or on...

SubViews disappear in Interface Builder

ios,xcode,interface-builder
Ok so this is really weird. I don't use interface builder anymore because of all of it's quirks like this one, but I am working on an old project I did. When I go to interface builder all of the Subviews are not visible, and they're opaque in the document...

Resize views relative to each other Xcode 6

ios,xcode,storyboard,autolayout,interface-builder
I am building a new app using Xcode 6 and auto layout. I have only just started using auto layout and this maybe a really simple issue to fix but i have been going around in circles trying to find the right way. I have a view played out as...

Add a custom color palette to XCode Interface Builder

ios,xcode,interface-builder
My current long term project utilizes a palette of custom colors. In code, we are using a category to access these colors by name. This works great but there are times, such as when building a nib, that these colors won't be set programmatically. I am looking for a way...

UISlider setMaximumTrackTintColor doesn't work in IB

ios,interface-builder,uislider
I have a UISlider in my window and I can't change its setMaximumTrackTintColor in Interface Builder. I set this color to one that I need, and Interface Builder's preview is ok, but on both the simulator and device this color is always RGB 183,183,183. Also, changing this value in code...

Custom NSView in NSTableView not showing all subviews

osx,swift,interface-builder,nstableview,nsview
I'm trying to create a custom NSView to display in a column in a view-based NSTableView. The view contains 2 subviews, an NSTextField and an NSButton. I want the button to stay the width set by the constraints, and the textfield to resize when the NSView is resized. Below is...

Does UIScrollview works correct with UIStatusbar?

ios,objective-c,uiscrollview,interface-builder,uistatusbar
my problem is related with UIScrollview. lets describe it, I have signup screen which has a scrollview, initially scrolling is not enabled. when keyboard appears I will enable scrollview and when keyboard hides again I am disabling scrolling. my scrollview’s width and height is same as its default view, I...

Align two labels in a table cell?

ios,interface-builder,xib
I am having pretty crazy amounts of issues trying to align two labels inside a table cell: The problem is I need both labels (the region is clickable) to be centred within their cell. I can only seem to get the layout centred based one or the other. Is this...

Import swift class into objective c storyboard

ios,objective-c,swift,storyboard,interface-builder
Im trying to integrate implement the project https://github.com/ariok/BWWalkthrough into my objective c project. I have an objc bridging header that Xcode automatically made for me I translated the ViewController.swift code as such UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Walkthrough" bundle:nil]; BWWalkthroughViewController *walkthrough = [sb instantiateViewControllerWithIdentifier:@"walk"]; BWWalkthroughPageViewController *page_zero = [sb instantiateViewControllerWithIdentifier:@"walk0"]; BWWalkthroughPageViewController...

Xcode 7 beta made my apps storyboard files inaccessible

interface-builder,xib,xcode7
I installed the Xcode 7 beta 1 and it asked me to convert my code to Swift 2, which I did. All worked fine, there were only some problems with my apps test target. When that was solved, I built and ran the app and the error said: com.apple.interfacebuilder error...

Custom UIView as navigationItem title

ios,uiview,interface-builder,xib,uinavigationitem
I want to create simple custom view and use it for navigationItem.titleView. My custom view is very simple, has only image view and label: [image]-[label]. I have xib file where I have defined all constraints (both subviews has constraint to superview - I want to height and width of subviews...

UIButton border disappears

ios,uikit,interface-builder
I'm designing a new button for an app, I'd like to avoid coding as I have to use the same button style through the app. I added some attributes and it works fine, but when I add a border color (doesn't matter which color) for no reason the border disappears....

SelectedRow of NSOutlineView always returns -1

cocoa,interface-builder,nstableview,selecteditem,nsoutlineview
I have a View-based NSOutlineView, and have in the class a selection change event: - (void)outlineViewSelectionDidChange:(NSNotification *)notification { NSLog(@"Selected Row inside:%ld",[self selectedRow]); } This is the way I create my NSOutlineView: ovc = [[OutlineViewController alloc] init]; [myOutlineView setDelegate:(id<NSOutlineViewDelegate>)ovc]; [myOutlineView setDataSource:(id<NSOutlineViewDataSource>)ovc]; MyOutlineView is created in IB. Every time I click on...

What is the purpose of the Custom Formatter on Interface builder?

ios,iphone,cocoa,interface-builder,nsformatter
Interface builder has this Custom Formatter that can be dragged to text fields. But this thing has no properties at all and the documentation, as typical with Apple, is non-existent. I need to create a formatter than can accept numbers, texts from the alphanumeric set and underscore and reject everything...

UICollectionView flickers thin “see through” lines between cells when scrolling

ios,objective-c,interface-builder
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 appearing spontaneously between cells...

UIContainerView height of content (embedded UITableViewController)

ios,swift,interface-builder,autolayout
I currently have a UITableViewController embedded in a UIContainerView in Interface Builder. Is there a way to set the height of the UIContainerView to the content's height (using prototype cells)? Basically, what I want is to have a UIScrollView around my UIContainerView, and set some AutoLayout rules to my UIContainerView...

NSSplitViewItem does not display like it designed in IB

objective-c,xcode,cocoa,interface-builder,nssplitview
I created a new empty Xcode project. And just added a NSSplitViewController to storyboard like below. And I ran the application, found out that the main window looked like below. The left split view was collapsed by default. I hoped it should be displayed like below: And I was not...

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

ios,xcode,storyboard,autolayout,interface-builder
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 the pop-up menu. https://developer.apple.com/library/ios/recipes/xcode_help-IB_auto_layout/chapters/pin-constraints.html My Storyboard has...

Resizing UiView Height With Dynamic Content in UIScrollView (Swift)

ios,swift,interface-builder
I have UIView inside of a UIScrollView and have connected them from Interface Builder: @IBOutlet weak var articleScroll: UIScrollView! @IBOutlet weak var articleSubview: UIView! I have dynamic content going into the UIView and I want its height to be drawn as large as the content (so that it scrolls). I...

Xcode/Interface Builder is ignoring the Fill Color setting

xcode,interface-builder,nsbox
I added an NSBox to my view, I set the fill color to the color I want: But the color doesn't show up in Interface Builder and doesn't show up when I run the app. What am I missing? I've also tried setting it programmatically via [self.myBox setFillColor:[NSColor greenColor]]; but...

Is it possible to run XCode Autolayout's constraint solver on command line?

xcode,interface-builder,autolayout
When I'm using Autolayout on Interface Builder, I can use Editor -> Resolve Auto Layout Issues -> All Frames - Update Frames to generate a new XIB with the new frames that satisfy the actual constraints of the file. Is it possible to run this command using the command line?...

Static tableview cell stays highlighted when returning from different scene

ios,swift,ios8,interface-builder
I have a uiviewcontroller with a container on it, embedded inside of that is a uitableviewcontroller that has static cells and static content. When I tap the cell "Trip Info" it segues to the Trip Info View Controller. When coming back the static cell is highlighted. I have seen many...

iOS UIButton title keeps reverting in UITableViewCell

ios,uitableview,uibutton,interface-builder,uistoryboard
I am trying to set up a fairly simple Storyboard/Interface builder app with aUITableViewController, with two prototype cells. The first prototype cell displays information on the main UILabel and the second prototype cell contains aUIButton. I have connected the button'stouchUpInside action to some piece of code where I want to...

IBInspectable & watchkit

ios,interface-builder,watchkit
Can I use IBInspectable at the watchKit ? When I mark a string as IBInspectable, I can see and set it at the relevant watchKit App storyboard, but when I set it, it actually does nothing.

How to make a view with picker and toolbar stay at the bottom of iphone screen

ios,xcode6,interface-builder
I am using this code and its placing my view at the top of the viewing area instead of the bottom. Any idea what I am doing wrong? I am not creating the view in swift because I already have it created in IB with a toolbar and pickerview inside...

Reference main NSWindow in AppDelegate using Storyboard?

xcode,swift,cocoa,interface-builder
I am attempting to set an outlet for the main window of my app in my App Delegate, then connect it within Interface Builder. I create the outlet within my App Delegate easily: @IBOutlet weak var mainWindow: NSWindow! However there's no way, within interface builder, for me to connect a...

TableView Cell Separator Line Not Extending Across the Entire Cell

swift,interface-builder,xcode6
I am working on a new project and have used a storyboard for the UI. All of my tableViews have an issue with the line separator. The picture below shows two lines. The first is a blue one which was set in the attributes inspector. The second one is black...

Different font sizes for uibutton and uilabel for iphone/ipad

xcode,swift,fonts,interface-builder
I am working on a quiz game,it started as an iphone app,now it is fully working and i want to make it an universal app,but i can't find a way to set the font size to one value for all iphones and another for the ipad I tried with the...

Difference between Frame Rectangle and Alignment Rectangle

xcode,interface-builder,xcode6
Can anyone explain what is the difference between Frame Rectangle and Alignment Rectangle in the size inspector? ...

Disable separator for a single cell

ios,interface-builder
What I'd like to do is remove the separator for a single cell in a tableview. I'd like to keep the others ones as they are but I can't seem to find a way to do it. I thought I could adjust the insets but from what I can see,...

Subview content being mysteriously offset in Interface Builder?

xcode,interface-builder,uicollectionview,uitextview,offset
I'm experiencing a weird behavior in Interface Builder. I almost feel like it's a glitch, but I'm hoping that I'm just misunderstanding something, or that someone knows what weird AutoLayout behavior I'm experiencing, or something. I'll try to describe it as best I can... I've got a ViewController in Interface...

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

ios,swift,interface-builder,autolayout,uinavigationbar
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 LocationPermissionsInfoViewController' but it crashed badly that way. Any ideas? var permissionsView...

How do I access the instance of an object that was loaded via storyboard?

ios,objective-c,xcode,interface-builder
See that little yellow cube? That's a controller. When the main controller loads, it loads too. Now I want to get the instance of that object in the main controller and call functions in it. How do I do this?...

Can't change Constraint IBOutlet that is defined for different size classes in IB

ios,autolayout,interface-builder,nslayoutconstraint,size-classes
I made a special test app for this case. I added a view on my controller's view in Storyboard, set up AutoLayout constraints in Interface Builder and made one of them (vertical space) is defferent for different size classes. Screenshot from IB So the value is 100 for Any height,...

Connecting cell selection to presenting segue (show) - swift

ios,swift,interface-builder,uicollectionview
I have as storyboard in iOS with a navigation controller and a few view controllers. The segues that I use with the navigation buttons work just fine, it's connected to the button action through the interface builder and goes through. Now I have a view controller with a view collection...

WatchKit Interface controller scrolls too much after adding next page segue

objective-c,storyboard,interface-builder,watchkit,apple-watch
experts! Today started to build Apple Watch version for my CelebrateMore! app and can't solve one issue. I have 2 interface controllers - Page-based kind. As soon as I set segue to "next page" from first to second, my first interface controller starts to scroll much more than before. Screenshot...

UITableViewCell Can Not Constrain Label to Right Edge

ios,swift,uitableview,autolayout,interface-builder
I have subclassed UITableViewCell (with a xib), and I have noticed that when I use autolayout/constraints, the labels that I place in Interface Builder do not show correctly at runtime. First, I put three labels aligned left, center, and right with respect to the cell's content view. When I run...

Setting constraints in a UITableView cell, keeping UIButtons appropriately spaced

ios,xcode,uitableview,interface-builder
this is something I have a problem with. I have done a bunch of tutorials on constraints in the interface builder and I understand pinning. My app below uses a UITableView and in the UITableView cells there are 4 UIButtons and 4 UILabels. I want to keep the spacing even...

Interface Builder is not letting me delete a button

ios,xcode,interface-builder,uistoryboard
To clarify: I have a view/vc which is designed as an orphaned scene in IB in the storyboard it is used within. This view has a button with an image, a height and width constraint, a left and top constraint. There is a table below it with top, left, bottom,...

How can I keep one NSButton as pressed after click on it?

xcode,cocoa,interface-builder,appkit,nsbutton
I have one NSButton and I want when I pressed it to stay as pressed. ...

Assigning Property to Loaded .xib

ios,cocoa-touch,interface-builder,xib
I'm attempting to alter the title of a button in a .xib I'm loading as: CustomToolBar *toolBar = (CustomToolBar *)[[[[NSBundle mainBundle] loadNibNamed:@"CoolBar" owner:self options:nil] objectAtIndex:0] initWithFrame:CGRectMake(0, self.view.frame.size.height, self.view.frame.size.width, 70)]; I've tried changing it directly using toolBar.button.titleLabel.text = @"VALUE"; And through a custom setter method, - (void)updateButtonText:(NSString *)buttonText { _button.titleLabel.text =...

Launch Screen XIB: Missing Width / Height Constraints

ios,xcode,interface-builder,autolayout
Using Xcode 6.1.1, I am building an iOS app that targets iOS8. I'm working on a LaunchScreen.xib file, created from the menu: File > New > File > iOS - User Interface - Launch Screen. "Use Auto Layout" is enabled. Inside the XIB's main UIView, I've placed a UIImageView. I...

How to occupy the app bottom with an image?

ios,xcode,uiimageview,interface-builder,autolayout
In Xcode I have placed 2 buttons at the top and 1 image (in Aspect Fill mode) at the bottom: All 3 elements are center-aligned. For the buttons I have added 20 px constraints to the sides and top and they seem to be placed well now. However I can...

How do I customize NSOutlineView to have border color?

objective-c,osx,cocoa,interface-builder,nsoutlineview
I have looked over the google but have not found many examples on this. Most only relate to the NSTableView. How do I subclass my NSOutlineView to look exactly like XCode's plist editor? I've do not know how to get the border colors shown below. I currently have it working...

Two scenes sharing a different scene wont segue

swift,ios8,storyboard,interface-builder,scene
So I have two different scenes in my storyboard and they both have a tableview cell that segues to a date picker scene. The first scene I built a segue from to the date picker scene works and also has an unwind segue. The second scene's segue wont fire when...

Connecting next field chain for form text fields

ios,objective-c,interface-builder
I'm trying to connect the text fields in a sign up form so that, upon done being pressed for each, the next field in the form automatically becomes active. To achieve this, I've extended the UITextField class, as follows, in the view controller for the sign up view. @interface UITextField...

WatchKit: Change only one Interface Controller title color

swift,interface-builder,watchkit
Right now I only know one way to change the title color for an interface controller and it is changing it with global tint in storyboard. However, this changes ever interface title color. How do I change just one interface controller title color? Any suggestions or tips is appreciated....

What is the new way of binding an NSArrayController to the managed object context of a Core Data document?

xcode,core-data,interface-builder,cocoa-bindings
Before Xcode went and added Storyboards for OS X apps you could connect an array controller to your document's managed object context by binding the Managed Object Context of the array controller to File's Owner with a Model Key Path of managedObjectContext. With storyboards there is no more File's Owner...

UITableViewCell background colour different then what I inputted

ios,xcode,uitableview,ipad,interface-builder
I'm having an issue where the iPad version of my app is giving me a different UITableViewCell background colour than the one that I've inputted. Here is the colour of the background colour: Here is the iPhone screen that is showing the correct background colour: And here is the iPad's...

TextCell in InerfaceBuilder for NSTableView

xcode,cocoa,interface-builder,tableview
I am quite new to NSTableView but as I tried to get things straight, I took a look at InterfaceBuilder!! TableView hierarchy I understand that objects are responsible for scrolling and clipping. TableView is the real NSTableView instance. The object titled function list ist the NSTableColumn below that is my...

Why are certain unicode characters not showing in Interface Builder?

ios,unicode,interface-builder
I would like to include some nice unicode characters in a label. They are correctly displayed both in the code editor (which uses a Menlo font) and in the Utilities part (the right part of the screen) of Interface Builder. However, they are shown as a question mark both in...

iOS 8 Autolayout - Dynamically Resizing 4 Square Views

ios,interface-builder,autolayout
I have a view which contains a square subview (gray). This square subview then contains four smaller squares (blue): Each of the squares are pinned to the top or bottom of the superview, and the left or right of the superview. For example, the top-left square has a constraint which...

center a view between two buttons

ios,interface-builder,autolayout
Hi. I need to center two separator between buttons. That buttons are aligned without problems with auto layout, but i don't know how to align the two vertical lines....

IBCollectionOutlet Array of Buttons with Autolayout

ios,arrays,swift,interface-builder
So I've created an IBCollection Outlet in swift. Basically it is an array [UIButton] I have an IBAction that creates a new button called button and appends it to the array. So basically when I click a certain button, it adds other buttons. What I cannot figure out is how...

How to show subclass of UIControl in View Controller

ios,swift,interface-builder,iboutlet,uicontrol
I would like to be able to interact with the UIControl I have made, and therefore want it in my ViewController. What I tried I subclassed UIControl (1). Then I added a UIView to my View Controller and assigned it the new class (2). But in Interface Builder I am...

Why my `IBAction` linked to another Project’s main.storyboard's view

ios,interface-builder
I copied a file named xxcontroller.m from another project. And than I found -(IBAction)XXX is linked to the previous project! How to delete this relation?

what are key command in interface Builder

objective-c,xcode,swift,interface-builder
On the right side bar of Interface builder; when a View Controller there is a "Key Commands" panel. What is it? Thanks and regards,...

Enabling/Disabling NSLayoutConstraints in InterfaceBuilder

ios,objective-c,xcode,interface-builder,autolayout
NSLayoutConstraint (in iOS 8.0) has a BOOL property called active which makes it easy to disable/enable said layout constraint on-the-fly. To create a second layout set for a view controller which I can then programmatically enable/disable (via an IBOutletCollection of NSLayoutConstraints for both sets) , I'll need to disable my...

How to configure a navigation controller in interface builder?

ios,swift,interface-builder
I have a navigation controller embedded inside a tab bar controller. In the highest level of my navigation ("Root view controller" on the screenshot) I will show categories, but then when the user taps on one category, what the next view controller the navigation controller will display might vary in...

Trying to load a nib from interface builder

ios,interface-builder,xib,initwithcoder
I have a UIView based class that has its own XIB. Lets call this class MyClass. So I have MyClass.xib, MyClass.h and MyClass.m. I have a UIView object on storyboard and I set that object's class to MyClass. I created a new UIView XIB and inside the XIB, I changed...

GooglePlus Sign In issue

ios8,xcode6,interface-builder,google-plus-signin
After a lot of search I have to go for my own question, I am using google plus login in my iOS App but failing. When I assigned the class GPPSignInButton to the button which I want to make the G+ sign in button, after running the app it shows...

Prevent Interface Builder from auto creating Constraints?

ios,autolayout,interface-builder,nslayoutconstraint,xcode-storyboard
I created a demo project here. I have a view where I created a ScrollView in a .xib file. In interface builder I did not set any constraints. In my viewDidLoad method I set constraints with SnapKit: scrollView.snp_makeConstraints { (make) -> Void in make.edges.equalTo(self.view) } When I run the code...

Suddenly xcode hided the views in interface builder Storyboard - iphone

ios,interface-builder,xcode-storyboard
The app was working normally, till I committed my code using Git for pushing the code online. The views were hidden from the interface builder (storyboard) suddenly. It shows the views this way: the interface builder does not show the faded views as well: I tried to check for the...

WKInterfaceLabel won't scroll when it is inside a group

swift,interface-builder,watchkit,wkinterfacelabel
Whenever I set my WKInterfaceLabel lines to 0 with the height "size to fit content" I am able to scroll through text whenever there is a lot. However, if I put the same label inside a group, I can longer scroll through the label text. Is there a way around...

How to make a window not open when the app loads XCode

cocoa,interface-builder,nswindow
I'm new to Interface Builder and Cocoa (Objective C) so sorry if this is a bit of a noobish question :P If I have a NSWindow in Interface Builder and run my app, it opens. How do I prevent this from happening (i.e. the window only opens when the user...

Root child view not sized properly when displayed by navigation controller

ios,xcode,uiview,uinavigationcontroller,interface-builder
I have a root view in a navigation controller that isn't conforming to the right length and I don't know how to fix it using IB. Here is a short clip showing what's happening (the attributes inspector shown in the video are of the navigation controller connected to this issue)....

iOS Autolayout view height based on larger subview height

ios,swift,autolayout,interface-builder
So I have a view in interface builder and I want its height to be based on the larger (height-wise) of the two subviews inside of it. However, that will only be determined when the view is loaded and the content is filled in via viewDidLoad. So right now I...

IB_designable externally

ios8,interface-builder,ibdesignable
Ive been looking into IB_designable and it is a really awesome feature. However, one issue that I have with it is that for each view, I have to subclasses a UIView. And within that Subclass I have to specify the UI elements inside the initWithCoder: method and prepareForInterfaceBuilder: However, I...

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

ios,uitableview,swift,interface-builder,uistoryboard
I am trying to add a custom checkbox button (http://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 ending with a picture of my Interface Builder: http://imgur.com/d6ejxEL,9NpqcnA,4gdLnMT,g24FYID#0 How would I get the Checkbox...

Creating a 3x3 grid with auto layout constraints

ios,xcode,interface-builder,autolayout
Xcode has said there are no layout issues but as you can see there is. I have tried everything. Apple docs, YouTube, Google, etc. It seems I am doing it right however maybe the order I'm doing things in or something else is causing these issues. After trying everything I...

UITableView with dynamic prototypes content and multi sections

ios,uitableview,swift,interface-builder
In xCode 6.1.1 interface builder, when i choose UITableView content of the type "dynamic prototypes" I cant select to have more than one section anymore, any clue how to have table with multi sections and dynamic prototypes?

xcode 6.1.1 new class naming sctructure

xcode,interface-builder
I made a new class called "SignInView" by going to CMD + n iOS: Source "m" Objective-C File Next File: SignInView File Type: Category Class: UIView And what I get back are two new files: UIView+SignInView.h UIView+SignInView.m I added these to my project target in build phases but these aren't...

Can NSDatePicker have a contextual menu?

cocoa,interface-builder,nsdatepicker
Ive been adding contextual menus to an OSX app I'm developing, and have successfully created a menu for a table view. However I'm having problems adding a contextual menu to a NSDatePicker. I've connected the 'menu' outlet to a NSMenu, but right clicking on the NSDatePicker doesn't bring up the...

iOS - changng constraint relation programatically

ios,xcode,interface-builder,nslayoutconstraint
given the following constraint in ios programtically: IBOutlet NSLayoutConstraint *myConstraint; this constraint is linked in interfacebuilder to the following details: How do I change the relation attribute programatically. I tried to look up for a method called setRelation but i dont see it. ...