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
0 answers

App keeps crashing even though removed error

I am creating a simple iOS app, and everything has been going fine until one error and the simulator crashed. I removed the error, yet the program continues to crash, halting at these two breakpoints: //in my view controller's 'initWithNibName' self…
jcaso
  • 69
  • 1
  • 7
0
votes
1 answer

In this project, why am I unable to access my view's properties that I load from a nib?

Here's a sample project recreating the issue: http://cl.ly/3O3M232f1q0R I created a TutorialScreen subclass of UIView, and in a xib file I created three UIViews of that type and used them in another class by bringing those objects into…
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
0
votes
1 answer

Loading nib using loadNibNamed:owner:options: designate initializer

I have a nib file with its class (UIView) assigned to it in the inspector, So when I need to show that view I loaded it using the method : loadNibNamed:owner:options: So if I have to do some initialization when I load the nib, what is the way to…
MohamMad Salah
  • 971
  • 2
  • 14
  • 31
0
votes
0 answers

Load different .xib for different orientation

In my application, i want to load different .xib for different orientation i.e. one for portrait , one for landscape I searched it and found solutions too, but it isn't working for me. Anybody please help me out with this. Here is my code:- -…
nickAtStack
  • 163
  • 8
0
votes
2 answers

No data in UITableView from xib

I'm trying to create a custom keyboard, showing a list of choices. I've created a xib-file (based on UIView) which only contains a UITableView. I've created ListKeyBoardView.h and ListKeyBoardView.m (see code below). In ListKeyBoardView.m I load the…
Leontien
  • 612
  • 5
  • 22
0
votes
1 answer

Call view controller with xib from storyboard?

For example, I want to create a button which will always push a simple view controller of the same class. Of course I can place it in the same storyboard file with other view controllers. But it could be called from everywhere. So it means too many…
Gargo
  • 1,135
  • 1
  • 10
  • 21
0
votes
1 answer

Custom initialisation while using storyboard

Prior to storyboards, and working with .xib files, I used this piece of code to do screen adjustments during init. - (id)initForNewItem:(BOOL)isNew { self = [super initWithNibName:@"NAME" bundle:nil]; if (self) { if (isNew) { …
Mark Molina
  • 5,057
  • 8
  • 41
  • 69
0
votes
1 answer

iOS: UITableViewCell subclassing with nib, into UIView (not view controller) subclass

I have a custom UIView subclass Leaderboard which itself contains a tableview tblLeaderboard. The interface was created with a xib. Additionally, I have a UITableViewCell subclass LeaderboardCell which also has a xib. I'm having trouble registering…
JoshDG
  • 3,871
  • 10
  • 51
  • 85
0
votes
3 answers

Decomposing an iPhone user interface -- multiple views in one xib?

I have one main view with an associated controller. I have some rather complicated toolbars that I need to switch in and out depending on user interaction. To keep things simple I manage the toolbars with my main view controller, rather than having…
DevDevDev
  • 5,107
  • 7
  • 55
  • 87
0
votes
2 answers

hide nib content until completion of a task

I am trying to complete a task, and then want the xib content to be shown on the view. However the VC is being initialized via nibFile, is there a way to do lazy loading of nib once the task is completed? Thanks
topgun
  • 2,463
  • 8
  • 31
  • 46
0
votes
0 answers

Custom view from NIB + autolayout

I've created a nib from which I load up my custom view with this code: NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:[[self class] description] owner:nil options:nil]; self = topLevelObjects[0]; But when I have autolayout enabled,…
Miroslav Kuťák
  • 1,875
  • 1
  • 18
  • 24
0
votes
1 answer

switching views with nib files is extremely slow

I'm going to try to put as much detail as possible in this post because its very important i accomplish this task and i dont know why im getting these strange results. So, here it goes. I have 5 view controllers/.xib files. I also have appdelegate…
Katushai
  • 1,510
  • 2
  • 14
  • 27
0
votes
1 answer

loading a new nib file after user approves

In my application i have 3 nib files. In the first nib file i have a uiwebview which redirects the user to vimeo page for user authentication for my app, after the user presses allow in that link then the control is transferred to my app, after that…
Tejreddy
  • 45
  • 6
0
votes
2 answers

Nib from different class

I have tried several other examples, on this site and others, but for the life of me I cannot get this to work. I have a NIB file which is a part of the class "ViewController2". I need to use a few of the views in this NIB file in my…
Will
  • 15
  • 3
0
votes
1 answer

Accessing nib/xib objects from controller

I have a UI file in xcode, and I have an AppDelegate class with an awakeFromNib function. From this function, is there a way to change properties of objects which are in the UI? For example, change the string of a label, textfield and so on. Sorry…
Donovan
  • 6,002
  • 5
  • 41
  • 55