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
6
votes
1 answer

Load XIB into ViewController Xamarin?

It is possible to create and load view from a custom XIB in xamarin? In Objective-C is like: self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]; self.window.rootViewController = self.viewController;
Geeko
  • 125
  • 2
  • 10
6
votes
2 answers

Is it possible to hide the dock icon programmatically

Is it possible to hide dock icon programmatically on demand. I know one way by which defining property "Application is agent (UIElement)" in plist we make the cocoa app as user agent. But this result in hiding the dock icon permanently. I am…
Unicorn
  • 2,382
  • 6
  • 29
  • 42
6
votes
2 answers

Check box on NSToolBar won't update?

I have a Check Box on a tool bar, (NSToolbar) as in the image below. It's action gets called and the sender.state toggles with each push, but on the tool bar the box never gets checked. So the expected behaviour in terms of toggling, and the Action…
Kenny
  • 1,083
  • 2
  • 8
  • 23
6
votes
9 answers

Error code: Could not load the "image.png" image referenced from a nib in the bundle with identifier "com.bundle.identifier"

This question has been asked before and i have looked in all of the other stackoverflow topics for an answer, but i can't resolve the issue. My app works fine in the simulator for all platforms, but when i run the app on my device i get the error…
user3040900
  • 61
  • 1
  • 1
  • 2
6
votes
2 answers

Memory leak in loadNibNamed?

I'm about to wrap up my first iPhone app and figured I'd run it through the Leaks Performance Tool. After fixing one obvious one, the only one I have left is one with a Nib acting as a table header view loaded through loadNibNamed (I was following…
AndrewO
  • 1,590
  • 1
  • 17
  • 24
6
votes
3 answers

Loading a nib file inside a UIViewController

I'm experimenting on how to load nib files to a UIViewController. I have created a separate nib file called Email. First I noticed that when the view controller is loaded, the initWithNibName method isn't getting called. So I called it from the…
Isuru
  • 30,617
  • 60
  • 187
  • 303
6
votes
1 answer

UIViewController subclass init not called when loading from nib

I tried overriding the default initWithNibName designated initializer of a UIViewController subclass like so: - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { if (self = [super initWithNibName:nibNameOrNil…
Johannes Rudolph
  • 35,298
  • 14
  • 114
  • 172
6
votes
2 answers

awakeFromNib is not calling but displaying xib

I have created a new project in xcode 4.5 and I have called my viewcontroller by -(id)initWithNibName:bundle: from appdelegate as it called in default project template and i am not using storyboard but awakeFromNib was not called I have also…
codester
  • 36,891
  • 10
  • 74
  • 72
6
votes
2 answers

Setting .reuseIdentifier on a UICollectionViewCell

I have a particular UICollectionViewCell that I want to instantiate myself, and add to a UICollectionView. In order for this to work, the UICollectionViewCell instance needs its .reuseIdentifier property to be set. Normally, the class or Nib that…
mjh
  • 3,508
  • 3
  • 19
  • 19
6
votes
1 answer

How to add copyright information to a Nib file?

I've just finished a total re-write [1] of one of Apple's example applications and I am going to release my code as source only on GitHub, under a BSD license. Adding the BSD license text to the .h and .m files is easy, and I can add copyright…
Peter M
  • 7,309
  • 3
  • 50
  • 91
6
votes
2 answers

Should new iOS developers use Storyboard and Xibs/Nibs?

I'm an experienced C/C++ Windows developer writing my first real iOS application. Since I don't really have to worry about backward compatibility, I decided to jump in and use the new Storyboard functionality in XCode 4.3. What I'm finding is that,…
stephmur
  • 83
  • 9
6
votes
2 answers

Endless recursive calls to initWithCoder when instantiating xib in storyboard

In order to re-use a certain subview throughout my application (which is storyboard based), I decided to build the subview as a nib, and load it in. To do this, I have done the following: I have a UIView subclass we can call Widget. I create a…
Chris
  • 1,421
  • 1
  • 15
  • 21
5
votes
2 answers

Cocoa - Display xib on another xib

Can anyone tell me how (or direct me to info on) displaying a .xib (nib) on another .xib (nib). How ever I wish to place it so I can programically move it around the main nib sort of like this (which obviously doesn't work) -…
user1276691
  • 51
  • 1
  • 2
5
votes
1 answer

App update still points to old deleted nibs. How to resolve this without app re-install?

We have an app that is already live on app store. Now we are planning to reduce the app size by programmatically creating all the views & removing respective NIB (XIB) files. The problem is even when the nib is deleted & not called for, the updated…
BufferStack
  • 549
  • 9
  • 20
5
votes
0 answers

Unsupported Configuration Multiple Objects Using Identifier "" (Identifiers must be unique)

I have just started using array controllers so my experience with them is very limited. I am getting this warning in XCode 4.1: Unsupported Configuration Multiple Objects Using Identifier "" (Identifiers must be unique) The double quotes are…
Nancy Poekert
  • 290
  • 4
  • 12