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

Multiple Nib files in UITableView

I am currently retrieving objects from Parse.com and saving them to CoreData. I am then next using NSFetchedResultsController to retrieve objects from CoreData. These objects will then be used to create a table view. Everything i retrieve from…
Fernando
  • 241
  • 3
  • 10
0
votes
1 answer

Why Storyboards are preferred on Nib. iOS

I am developing apps for iOS and never used storyboard. But most of the people prefer them over nib. What is the reason for that?
0
votes
0 answers

Cocoa resize window hides controls

I am working on a cocoa project, utilizing auto layout. I let Xcode automatically pick the constrains for me. When I simulate the document, it looks good, the controls adjust accordingly with the window. When I run the project, the controls stay in…
M Jesse
  • 2,213
  • 6
  • 31
  • 37
0
votes
2 answers

Perform segue of view from NIB subview button

I have a main view (contains a table view of profiles) which has a Navigation Controller. In the navigation bar I have a "menu" bar button. When the user clicks the bar button, a Menu View is added as a subview to the main view. This Menu View…
lr100
  • 648
  • 1
  • 9
  • 29
0
votes
1 answer

xcode interface builder : nib is not being displayed while placing inside other nib

I have developed a custom UIView with nib file such that I can reuse it whenever needed. Now the thing is I have a nib of a UIViewController and I am drag and drop a Dummy UIView inside it and changing the Class Name to custom view's class name.…
sam18
  • 631
  • 1
  • 10
  • 24
0
votes
1 answer

Using Storyboard instead of Nib

I'm trying to recreate a small iOS app that utilized nib files. I'm trying to replace the following line of code self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]; with: UIStoryboard* sb = [UIStoryboard…
0
votes
1 answer

Attaching Nib to existed UITableViewCell

I have a UITableViewCell which is defended programmatically. I am trying to attach to it a simple Nib file. Nib has been created and fully configured. And I can add to Nib an images with IB and see that they appears when app is running. This means…
pmor
  • 5,392
  • 4
  • 17
  • 36
0
votes
1 answer

'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle

I've got a masterdetail application that throws the error; Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle
Alex
  • 587
  • 11
  • 31
0
votes
1 answer

Objective-C all instances for UI is nil

I'm trying to do my first project in Objective-C/Xcode for Mac. So far, I have just copied an example from GitHub (https://github.com/phae-girl/multi-view-controllers-xibs). It is an example of how to have 2 subviews inside a main window. The…
Mads Y
  • 342
  • 1
  • 4
  • 12
0
votes
2 answers

set current tableview inside new uiview

I've been making an App completely programmatically, but I would like to add some more buttons etc. Currently my main view is a full-screen TableView. I would like to load a UIView (from a NIB) which has some buttons / labels and my curreny…
Eduard
  • 309
  • 2
  • 12
0
votes
0 answers

Load custom UIView with Nib in ViewController

I'm making RadioPlayer with model, view and controller. Model would be a shared instance and all initialization (play, pause etc.), view is just button and slider and controller should merge view and model... Now I've got problem how to do this…
Želja Huber
  • 337
  • 5
  • 14
0
votes
2 answers

How to create a custom UIButton in code and use it in a xib?

I have a class MyButton : UIButton which inherits from UIButton. I do a bunch of things in the initWithFrame (the only constructor)of MyButton say like setting the backgroundcolor. Now I want to use this MyButton in my xib. so that I dont keep…
FatalError
  • 574
  • 1
  • 7
  • 18
0
votes
1 answer

How to submit nib files to perforce that were previously added?

Recently I added a .bundle file that had several .nib files in it to perforce. I'm new to using p4 on a mac so I didn't think much of it and it submitted just fine. I now tried to check out and edit the bundle (basically just replace the previous…
Alicia Cano
  • 200
  • 6
0
votes
2 answers

Cocoa user interface loading problems

I'm a noob on objective C so I'm sorry if I don't use the right terms to describe my problem but I need a hand and SO is my least resource! I'm trying to interface an Arduino balance with my mac with an objective C software in which I've got a Nib…
0
votes
1 answer

How can I view an XIB from an app store app?

I downloaded an app with nice design and unpacked it's contents. I'd like to look at the NIBs to see how the app is put together. I renamed the NIBs to XIB, but Interface Builder won't open them ("Interface Builder was unable to determine the type…
nevan king
  • 112,709
  • 45
  • 203
  • 241