Questions tagged [nib]

NIB files are similar to XIB files (XCode Interface Builder), with the difference being XIB files are modified during development and NIB files are created during the build process. NIBs store static information about the interface as well as any behavior that has been implemented.

Storyboards have since succeeded NIB/XIB files as the latest UI interface tool.

1152 questions
18
votes
4 answers

iOS9 - UITableViewCellContentView is covering up Controls inside Cell

I have made a custom UITableViewCell called "SwitchCell" that has a switch. In iOS9 Only, using Xcode 7 beta, the Content view in the cell is on top of the switch. (See screenshot of View Hierarchy. You can clearly see that the content view of…
FranticRock
  • 3,233
  • 1
  • 31
  • 56
18
votes
1 answer

How to load a UIView from a NIB?

I have been using UIViewControllers and initWithNibName with much success, basically using them as a convenient way to design the view with Interface Builder. Unfortunately I have built a hierarchy of views before noticing this line in the…
Winder
  • 1,984
  • 5
  • 23
  • 33
17
votes
4 answers

How to remove programmatically a tab bar item created in parent class NIB file?

Within my iPhone application I have a common tab bar with three tabs that is presented from several views after pressing a button. The approach I followed was the workflow of Tweetie application, described in Robert Conn post. Note that the main…
elitalon
  • 9,191
  • 10
  • 50
  • 86
17
votes
3 answers

FileMerge .nib file type cannot be merged

I am trying to merge two .nib files. FileMerge has no problem showing the comparison of the two files. I am trying to keep all the settings in one file (i.e. right side) except for two settings that I want to copy from the other file (i.e. left…
Mike
  • 331
  • 2
  • 9
17
votes
2 answers

Group views in Interface Builder

Is there any way to move a group of views within another without grouping all in the center? Edit: Here some images with the process. 1.- I have a view with separate subviews (labels, buttons, images...) 2.- I create a new view (that will contain…
alejandromp
  • 929
  • 1
  • 10
  • 19
16
votes
1 answer

Crash on [[NSBundle mainBundle] loadNibnamed:owner:options:]

I cannot figure this one out. I have a created a custom UITableViewCell in IB. As far as I can tell I have all the objects in the cell which are all UILabels wired up properly and everything builds without any errors. When I try to use the custom…
user278859
  • 10,379
  • 12
  • 51
  • 74
16
votes
2 answers

Hiding some views in the interface builder

Is there a possible way to hide some views in Interface Builder? I don't mean to hide it when the app launches, but to hide it just in Interface Builder to be easy for me to see other views. Actually I want to do that because my xib file has a lot…
user3516596
  • 339
  • 5
  • 14
16
votes
4 answers

Why won't my awakeFromNib fire?

I am starting to move more of my view hierarchy construction to IB. I have a nib file called "AlignmentViewController.xib" in which I set up my view hierarchy with AlignmentViewController as the files owner. This works fine. One of the methods I…
dugla
  • 12,774
  • 26
  • 88
  • 136
15
votes
3 answers

How to replace RootViewController in "Navigation-based application"

I have an application that uses the "navigation-based application" template in XCode. Now I want to change it so that the first view that loads is a regular (custom) UIView, and if the user clicks a particular button, I push the original…
iter
  • 4,171
  • 8
  • 35
  • 59
15
votes
2 answers

iOS Storyboards/NIBs low-level anatomy. How are they implemented?

I became interested in low-level details of NIB/Storyboards mechanisms in iOS. I want to learn more about their implentation - I'm interested in developing of my own mechanism. I found some information about NIB files on the Apple site. They said: a…
MainstreamDeveloper00
  • 8,436
  • 15
  • 56
  • 102
15
votes
1 answer

Why doesn't initWithNibName work for my UIViewController subclass?

I have subclassed UIViewController into a new class, PageViewController (I'm writing a simple book app). I want to add a new view loaded from a nib file and am using the following code. It works. PageViewController *viewController1 =…
niels
  • 185
  • 1
  • 2
  • 9
14
votes
1 answer

How to convert a NIB-based project to a Storyboard-based?

I'm using storyboard (this is completely new!). How do I import my existing xib files and integrate them onto a single file, using the storyboard option?
Xander
  • 902
  • 2
  • 14
  • 33
14
votes
6 answers

Good reasons why to not use XIB files?

Are there any good reasons why I should not use XIB / NIB files with an highly customized UI and extensive animations and super low memory footprint needs? As a beginner I started with XIB. Then I figured out I couldn't do just about everything in…
dontWatchMyProfile
  • 45,440
  • 50
  • 177
  • 260
13
votes
3 answers

Do I lose performance by using .xib files to provide an iPhone app's GUI?

I was wondering if there is a difference between using .xib files for GUI design and doing this programmatically. As it is a compiler I would assume that there is no relevant time lost. Am I wrong?
jantimon
  • 36,840
  • 23
  • 122
  • 185
13
votes
2 answers

iOS - UIActivityIndicator causing "Hides when stopped but is neither hidden or animating" warning

I'm getting this warning for every nib file that contains a UIActivityIndicator. The warning states: Unsupported Configuration: Hides when stopped but is neither hidden or animating What am i doing wrong?
Abdalrahman Shatou
  • 4,550
  • 6
  • 50
  • 79
1 2
3
76 77