Questions tagged [xib]

XIB is the file format for Interface Builder, which is a development tool for the Mac OS X & iOS platforms.

is a software development application for Apple's Mac operating system. It is part of (formerly Project Builder), the Apple Developer Connection developer's toolset. Interface Builder allows and Carbon developers to create interfaces for applications using a graphical user interface. The resulting interface is stored as a .nib file, short for NeXT Interface Builder, or more recently, as a .xib () file.

Interface Builder is descended from the NeXTSTEP development software of the same name. A version of Interface Builder is also used in the development of OpenStep software, and a very similar tool called Gorm exists for GNUstep. On March 27, 2008, a specialized iPhone version of Interface Builder allowing interface construction for iPhone applications was released with the iPhone SDK Beta 2. As of Xcode 4, Interface Builder no longer exists as a separate application, and its functionality is directly integrated into Xcode.

The Interface Builder editor within Xcode makes it simple to design a full user interface without writing any code. Simply drag and drop windows, buttons, text fields, and other objects onto the design canvas to create a functioning Mac, iPhone, or iPad user interface.

Because Cocoa and Cocoa Touch are built using the Model-View-Controller pattern, it is easy to independently design your interfaces, separate from their implementations. User interfaces are actually archived Cocoa or Cocoa Touch objects (saved as .nib files), and OS X and iOS will dynamically create the connection between UI and code when the app is run.

Resources:

3016 questions
19
votes
4 answers

Localizing a modern xib-based Mac application

Ours is an open-source Mac application localized by volunteers. These volunteers will do their work on special localization builds of the software (with unstripped nibs), then send us the changes to integrate into the original xib and strings…
Peter Hosey
  • 95,783
  • 15
  • 211
  • 370
18
votes
3 answers

Use storyboards in a project which has .xib files- iPhone

I want to use generally the old .xib files in my iPhone application. But when it comes to tableViewController storyboard is a lot more convenient in order to make custom cells etc. Is it possible to make a .xib based application and in the middle of…
gsach
  • 5,715
  • 7
  • 27
  • 42
18
votes
4 answers

How can I recycle UITableViewCell objects created from a XIB?

I'd like to create custom UITableViewCell using an XIB, but I'm not sure how to recycle it using UITableViewController's queueing mechanism. How can I accomplish this? Folks, this question was intended to be self answered as per the FAQ, although I…
Moshe
  • 57,511
  • 78
  • 272
  • 425
18
votes
2 answers

Load XIB this class is not key value coding-compliant for the key

I just create custom UIView with name PopupViewForViewMoreDetail and I want to add this custom view in my ViewController but each time getting below error Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<0x7f8155f2e430>…
Govaadiyo
  • 5,644
  • 9
  • 43
  • 72
17
votes
4 answers

Multiple Views within one XIB - iPhone SDK

I have been spending time learning how to use the iPhone SDK. I've read "Beginning iPhone Development: Exploring the iPhone SDK" from cover to cover and I've never seen an example of multiple views within one XIB. To illustrate what I mean, here is…
Frank V
  • 25,141
  • 34
  • 106
  • 144
17
votes
9 answers

Xcode 4 .xib Create iPad Version

I have an iPhone xib I want to turn into an iPad xib. In Xcode 3 there was a "Create iPad Version" menu option. How do I do this in Xcode 4? I currently resized my xib, but when I turn on the simulated items (Navigation Bar, etc.) it shrinks the…
Collin
  • 6,720
  • 4
  • 26
  • 29
17
votes
2 answers

What is the best practice when using UIStoryboards?

Having used storyboards for a while now I have found them extremely useful however, they do have some limitations or at least unnatural ways of doing things. While it seems like a single storyboard should be used for your app, when you get to even a…
Scott Sherwood
  • 3,108
  • 25
  • 30
16
votes
5 answers

Objective C, Thread 1 Program Received Signal SIGABRT

I am trying to compile and run a simple tutorial for an Objective C app using Interface Builder. I am using Xcode 4.0.2 and simulating on iOS (iPhone)…
eric.mitchell
  • 8,817
  • 12
  • 54
  • 92
16
votes
2 answers

How can I extract all localizable strings from all XIB files into one file?

I am looking for a way of extracting all localizable strings from .xib files and have all of them saved in a single file. Probably this involves ibtool but I was not able to determine a way of merging all these in only one translation dictionary…
sorin
  • 161,544
  • 178
  • 535
  • 806
16
votes
5 answers

Creating single .xib for different UITableViewCell classes

I am facing a problem. I have a NNVerticalStackTableViewCell.xib file and its corresponding NNVerticalStackTableViewCell.swift file. Code for NNVerticalStackTableViewCell.swift file: class NNVerticalStackTableViewCell: UITableViewCell { //MARK:…
PGDev
  • 23,751
  • 6
  • 34
  • 88
16
votes
13 answers

Xcode shows old, deleted xib files

I've searched all over and haven't found any help... I built a small test app with two UIViewControllers and their corresponding xibs. Things were fine, then I made some changes to both xibs but when I build and run, I get the old views. I've…
Steve
  • 6,332
  • 11
  • 41
  • 53
16
votes
3 answers

Marking some XIB/Storyboard strings as not localizable

I am using Base Internationalization for XIB/Storyboard files and the "Export for Localization" method using XLIFF files for translators. I have some labels, buttons, etc. that have text that should be translated, but I also have labels where we use…
Lou Franco
  • 87,846
  • 14
  • 132
  • 192
16
votes
2 answers

Hiding some views in the interface builder

Is there a possible way to hide some views in Interface Builder? I don't mean to hide it when the app launches, but to hide it just in Interface Builder to be easy for me to see other views. Actually I want to do that because my xib file has a lot…
user3516596
  • 339
  • 5
  • 14
16
votes
4 answers

Why won't my awakeFromNib fire?

I am starting to move more of my view hierarchy construction to IB. I have a nib file called "AlignmentViewController.xib" in which I set up my view hierarchy with AlignmentViewController as the files owner. This works fine. One of the methods I…
dugla
  • 12,774
  • 26
  • 88
  • 136
16
votes
8 answers

Same xib for iPhone4 and iPhone5 possible?

Is there any way I can design my classes for both iPhone4 and iPhone5 using the same xib?
Ambili B Menon
  • 1,249
  • 2
  • 14
  • 26