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

Creating a header NIB and show on all Views

This is what I want to achieve on an iPad app. I have a header which contains the company logo and few buttons at the top. This should appear on all the views or screens. But the buttons or logo changes frequently in the header. So, I have created a…
inxss
  • 85
  • 2
  • 7
0
votes
1 answer

Storyboard & 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle

I'm not even sure if I'm doing this right but this is what I'm attempting to do. I have a storyboard that includes a table view - which is populated programmatically - all of which works. I also have another ViewController within the storyboard that…
CodeMoto
  • 331
  • 1
  • 6
  • 24
0
votes
2 answers

Can you set default nib size to 3.5" in xCode 4.5.1?

Ever since updating xCode to the latest version (v. 4.5.1) every time I create a new nib or storyboard it assumes a default view size of 4" (ie: to reflect the new iPhone 5). However, I'm working through many tutorials and text books as I'm learning…
Dale Dietrich
  • 7,196
  • 4
  • 21
  • 25
0
votes
1 answer

iphone two nibs have different x coordinates for center

Ok this is really odd. I didn't even know how to phrase the question. I am using XCode 4.5 I have two views, each with their own NIB. It is possible that one NIB was created in a much earlier version of XCode, and one in 4.2 (I don't remember) I…
0
votes
1 answer

Changing what is loaded by a nib file

in my iPad application I have a panel of buttons, I have used an UIImageView as this panel and put buttons on top of it and created my nib file. in some views some button of this panel should not be displayed. so what i do is removing those buttons…
Aruna Herath
  • 6,241
  • 1
  • 40
  • 59
0
votes
2 answers

awakeFromNib not called when using instantiateWithOwner: method

I have a little problem and I need to understand how stuff works. I've searched within SO but I didn't find any valid solution. My scenario is the following. I have a UITableViewController that loads cells (within its table using) by means of UINib…
Lorenzo B
  • 33,216
  • 24
  • 116
  • 190
0
votes
1 answer

Non-universal iPhone app build automatically loads iPad nibs when run on iPad

My app started life as an iPad-only app. Now I am converting it into a smaller version suitable for the iPhone. I am using the same codebase, and many of the controllers don't actually need to change much - just the views need to be remade to suit…
Rob B
  • 1,485
  • 12
  • 16
0
votes
1 answer

Loading View From Nib doesn't initialize the outlets - Monotouch

hi i am currently trying to load dynamically a view from the NIB file this is the code : res1 = new View1(); var ptr = NSBundle.MainBundle.LoadNib("View1",res1,null).ValueAt(0); res1 = Runtime.GetNSObject(ptr) as View1; res1 has a button inside. …
dimka87il
  • 95
  • 6
0
votes
1 answer

Going NIB-less with a new version of an iPhone app

I started a conversion process to remove the NIB files from my iPhone app, to pass the whole interface to an only-programmatically version. I noticed that when testing the app with my iPhone connected to Xcode, the old NIBs were still in use (a…
flip79
  • 1,178
  • 2
  • 15
  • 28
0
votes
1 answer

What are some of the possible causes of a UIView rarely not being rotated when revisited?

I put this code into all of my viewControllers: UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation]; if (orientation == UIInterfaceOrientationLandscapeRight) { CGAffineTransform transform =…
Karl
  • 5,613
  • 13
  • 73
  • 107
0
votes
1 answer

how to access nav button control on nib programatically

I have a button on my nib and would like to tell it to go to another nib page once it is selected. Heres how it looks: 2 nibs. nib1 has a button in the nav bar called 'btnHome'. Once it is selected, I would like it to go to nib2. How would I access…
Simagen
  • 409
  • 2
  • 8
  • 18
0
votes
1 answer

How to link NSTextView from nib to windowController?

I created an outlet property for NSTextView in an window controller file. I then created a separate window xib file with a NSTextView in it. How do I link the view object in the xib file to the outlet in the window controller file?
Standstill
  • 399
  • 4
  • 17
0
votes
1 answer

Why does my app always open with a memory warning, if there is almost no code for the first view?

I recently have been getting memory warning messages when I load my app on my iPhone. I believe it has something to do with the storyboard that I recently switched over to from the classic .xib files. The app has been running a lot slower since…
cory ginsberg
  • 2,907
  • 6
  • 25
  • 37
0
votes
1 answer

How to load the IBOutlets from NIB in the the init method?

I need access to the IBOutlets in my initWithNibName method of my UIViewController, but they are all nil as they haven't been instantiated yet. Is there a way to instantiate them? I have read that is not safe to call -loadView as it will cause…
Cosmin
  • 2,840
  • 5
  • 32
  • 50
0
votes
3 answers

Access the same object inside two different nib files

I want to know how the same reference of an object of a particular class can be accessed inside two different Xibs. I understand that by creating an object reference for the class inside each xib creates different objects. Even when using…
Rakesh
  • 3,370
  • 2
  • 23
  • 41