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

How to link two xibs?

I've to custom cells each in an seperatea .xib file (and for each of them a seperate .h and .m file) I need these two custom cells in my tableview (Controller). Thats an seperate file, too. How is it posible to link the two custom cells to the…
Johnlikesit
0
votes
1 answer

How to change an iOS project to not use the nib at all and just work with Objective-C code?

After we create a Single View App on Xcode 4.3.2, are there a couple of things we can do to make the project not use the .nib (the .xib) at all? Right now we can click on the .xib and change its custom class in Xcode to our FooView class, and do the…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
0
votes
1 answer

Interjecting into the nib loading process

My iOS app can be rebranded by downloading a zip file with new images and strings. This can happen at any time. Since I can't replace the files inside the app bundle, I have to check to see if there's a new image / string every time I load a nib,…
MacsimusPrime
  • 179
  • 1
  • 1
  • 8
0
votes
2 answers

A view loaded from the nib doesn't receive touch events

I am trying to load a a view from the nib and add it to the main view. Here is my code. I loaded the nib in the initWithFrame of the @interface AddTaskView:UIView: - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; …
flaviusilaghi
  • 677
  • 3
  • 10
  • 27
0
votes
3 answers

How to load a tableview cell using a different cell identifier than the one specified in the nib file

// actual question I need help in loading the nib file (tableviewcell) using a different cell Identifier than the one specified in the nib. // background on what I am doing I have a custom UITableViewCell with few labels, few images, and few…
avi
  • 57
  • 1
  • 7
0
votes
1 answer

Loading nib file for universal application

I an universal application how to create and load a nib file programmatically? How to connect the objects outlet in the new nib file? Or every time i have to check whether the device is iPhone or iPad and accordingly place the objects?
Prerna chavan
  • 3,179
  • 7
  • 35
  • 77
0
votes
2 answers

Can you add objects to a storyboard scene that aren't subviews of the view controller's view?

In a normal view controller's nib you can instantiate and configure objects and they don't have to be child views of the file's owner's (view controller's) view. I find it useful to create and configure buttons and labels "on the side" so I don't…
zekel
  • 9,227
  • 10
  • 65
  • 96
0
votes
1 answer

XCODE Storyboards, landscape view

I have created an app using Storyboards, and have designed it to be landscape. In the view controller.m file I have placed the following code: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return…
user1377373
0
votes
0 answers

xcode 3.1.4: nib controller doesn't seem to find nib file?

So I've got a MyNibController class and an nib file which I've tried calling both MyNib.xib and MyNibController.xib with no luck. I think I've got them hooked up properly on the IB end (I was following a tutorial for xcode 5 though) with my nib's…
krstn
  • 101
0
votes
2 answers

Button to XIB link, bringing me to blank white screen (Xcode)

Alright, so what is happening is I have a button setup to link to another view in Xcode, so when the button is pressed, you will be directed to that view. Simple enough? So I thought. I've done this same implementation several times over, but for…
Jordan Clark
  • 153
  • 1
  • 5
  • 11
0
votes
2 answers

For iOS programming, is it true that when people say "is it built from a nib", that means a "xib"?

It seems that people may ask: is this view built from a nib. Is it true that a nib is the compiled form, and xib is in XML form, and we don't use nib any more but only use xib? So nowadays, it just means "is it built from a xib"?
Jeremy L
  • 3,770
  • 6
  • 41
  • 62
0
votes
1 answer

Reload Nib of custom UITableViewCell at runtime

Hello i have two Custom UITableViewCell nib, and i give the option to the users to choose what type of nib choose in the setting, i initialize the custom view cell in this way: - (UITableViewCell *)tableView:(UITableView *)tableView…
Piero
  • 9,173
  • 18
  • 90
  • 160
0
votes
1 answer

ViewController and Subclass ViewController with multiple Nibs

Is it possible to have a ViewController use one nib, while my ViewController's subclass points to another? What I am trying to do: I have an application that has a main menu that will take you to any section. Within the section you are in, you can…
Jason
  • 5,277
  • 4
  • 17
  • 12
0
votes
1 answer

loading non-existing .xib at run-time

I created an IB file and linked it to MyAVController class. But then I changed my mind and do all the layout programmatically in MyAVController class. So I deleted the IB file (MyAVController.xib) from the project. My project compiled…
MobileDev
  • 3,750
  • 4
  • 32
  • 35
0
votes
3 answers

objective-c Unable to load nib file: RoosterView.xib

I changed my nib file by editing the info.plist file, and set the File's Owner to my class extending NSViewController, but now it gives me above error: Running… 2012-04-06 15:11:45.552 Rooster[1251:a0f] Unable to load nib file:…
11684
  • 7,356
  • 12
  • 48
  • 71