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
1
vote
1 answer

Difference between xib and without xib

I have been developing iPhone Application. But I have a query regarding it that I mainly is to make my application without .xib, I is to create a view while run time, But I wonder I have seen many example on various site where they use xib for…
Vishnu Gupta
  • 266
  • 2
  • 17
1
vote
1 answer

How to re-use .xib file as a template to another .xib file within one application?

How to re-use .xib file as a template to another .xib file within one application. I want one xib which will be like a template (for example xib with logo) and I will import it like a subview on another xib file. How can I do it?
ElizaS
  • 850
  • 1
  • 9
  • 22
1
vote
3 answers

Access, get reference to multiple views from a single nib

In a table view, I'm inserting cells with reuse identifier. So, I have to create one nib (xib) file for each cell. I want to put all the cell views in one xib file and get reference to them individually. How to do this?
user1559227
  • 1,021
  • 2
  • 10
  • 13
1
vote
1 answer

How to customize keyboard using file xib in iOS

I want to customize a keyboard in iphone by designing in nib file. How can I call it to use ?
user1584341
1
vote
1 answer

Sequence of execution when loading xib?

I have been programming on iOS for almost six months now, using xibs left and right, but i am still unaware how loading process works... What i mean, i have view controller and push button to open new modal view controller. From that point onwards…
MegaManX
  • 8,766
  • 12
  • 51
  • 83
1
vote
1 answer

Changing view from xib to storyboard

I have a Storyboard project witch i need to have an xib file loading on startup, to show a login screen. Its based on a UIWindow and a view controller so i dont get it to work in storyboard. Anyways is there anyway that after this xib is loaded at…
user1373308
  • 47
  • 1
  • 6
1
vote
1 answer

Storyboard -> XIB | Loading Views

I have recently converted from Storyboard to XIB. Because I have a large number of views, and it is easier to work with XIBs over a git repository. (Also the app will now be available for iOS 4). Now here is the code that I used to have, but I am…
Neil
  • 2,004
  • 3
  • 23
  • 48
1
vote
0 answers

InitWithNibName returns viewController but view is nil

Other xib's auto-load fine, but not this one. When I push this viewcontroller, initWithNibName, loadView, viewDidLoad, and viewWillAppear are called fine, but the view (and all self.xxx objects in @interface) are nil in all these methods, and I am…
Henrik Erlandsson
  • 3,797
  • 5
  • 43
  • 63
1
vote
2 answers

iOS: Returning to main XIB from secondary XIB

I am trying to change a back to the main xib after I was on a second XIB. This is the current code I am using: NSArray *nibObjs = [[NSBundle mainBundle] loadNibNamed:@"Results1" owner:self options:nil]; UIView *aView = [nibObjs…
Tim
  • 115
  • 1
  • 2
  • 10
1
vote
0 answers

objective c open new xib conditionally

Hello all I have 5 xib files with a if statement: enter code here if(results == @"1") { //open xib1 }else if(results == @"2") { //Open xib2 }else if(results ==@"3"){ //Open xib3 }else if(results ==@"4"){ //open xib4 }else if(results…
Tim
  • 115
  • 1
  • 2
  • 10
1
vote
1 answer

How to assign an identifier to a UIViewController from the MainStoryboard?

Before I used to allocate and initialize a view controller using initWithNibName, where the parameter for the Nib name is simply the name of the xib/nib file. However, with the way Xcode/IB works with Storyboards now, I'm not sure what I need to do…
1
vote
1 answer

Using tutorials with xib and changing to storyboards

I'm doing the following tutorial (this is just one example): http://www.raywenderlich.com/1040/ipad-for-iphone-developers-101-uisplitview-tutorial I start things off by creating a new project called MathMonsters. Xcode then creates files for both…
1
vote
1 answer

Change CellReuseIdentifier Based on section

I have a UITableView and a number of .xibs with different table view styles. Each .xib has it's own class and is registered with a reuse identifier based on the section. For example: In my viewDidLoad I have the following: UINib *cellStyleOne =…
CoreCode
  • 2,227
  • 4
  • 22
  • 24
1
vote
2 answers

Old XIB is loaded every second time I load my app?

I have a very strange problem. Sometimes when I launch my app (on iPhone device or in Xcode iOS 5.1 Simulator) I got an old version of the XIB I'm doing changes with. Anyone have any tip on what could be wrong? Here is the code from where i launch…
Anders Lundsgard
  • 747
  • 1
  • 7
  • 17
1
vote
2 answers

How to pass parameter when loadNib with method [NSBundle loadNibNamed:xibName owner:[NSApplication sharedApplication]]?

When I use loadNibNamed method to load a xib file, how to pass some parameter? [NSBundle loadNibNamed:xibName owner:[NSApplication sharedApplication]];
cuichang
  • 59
  • 1
  • 8
1 2 3
99
100