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

How can I use different XIBs for portrait / landscape?

I want to have two separate XIBs, one for portrait and one for landscape. My AppDelegate look that: #import "AppDelegate.h" #import "ViewController.h" @implementation AppDelegate - (BOOL)application:(UIApplication *)application…
pbeo
  • 399
  • 1
  • 4
  • 14
1
vote
1 answer

Cannot Properly Resize MKMapView in Interface Builder

I try to insert and resize a MKMapView via interface builder (xcode 4.5). However, the simulator shows different size/position compare to what we see in IB. Any hint where could go wrong…
Kai
  • 45
  • 1
  • 7
1
vote
1 answer

iOS: Adding navigation bar from XIB

I have been seeing this issue and resolving it by manually creating UINavigationController in the code. Could someone please tell me when I add Navigation Bar from XIB's Attribute Inspector -> Set Top bar to Black Navigation bar, it gets displayed…
Paresh Masani
  • 7,474
  • 12
  • 73
  • 139
1
vote
1 answer

Loading custom class UIView from NIB (IBOutlets nil)

I'm trying to modularize a complex UI in several xib's. I want to programaticly load each additional xib from file. The xib has controls which are connected to the custom view code. Then I try to load the xib the following way inside the main view…
Nuno Santos
  • 1,476
  • 3
  • 17
  • 34
1
vote
1 answer

What are NSvFlags?

I've worked out that the lower 6 bits correspond to the autoresizing mask of the view, but is there any harm in editing this property directly in the XIB XML? The reason I am doing it is because for whatever reason, Xcode insists on giving the root…
borrrden
  • 33,256
  • 8
  • 74
  • 109
1
vote
1 answer

How to dynamically change Interface Builder xib files by writing Objective-C code?

Today I'm writing my first "Hello World" application for iOS. And I wondered how can I manipulate .xib files programmatically similar to Android XML layout files or XAML? I also want Interface Builder dynamically display changes. For example I have…
Oleksandr Karaberov
  • 12,573
  • 10
  • 43
  • 70
1
vote
0 answers

Apple PhotoScroller Sample ... How to comine xib to storyBoard?

I want to make Image gallery as a part of my project which depends on storyboard ,, I want to use photo scroller apple sample to do that which depends on an xib file as a UIViewController ,, my question is how to combine this to my storyBoard ? I…
Shymaa Othman
  • 239
  • 1
  • 3
  • 16
1
vote
7 answers

Cannot manually load xib from a view controller?

I'm making an app using the Blackboard SDK. It would really help if you could download the SDK and see if you have the same errors. Here is a link to the instructions, in case anyone wants to follow along -- not too many pages. The instructions say…
Mahir
  • 1,684
  • 5
  • 31
  • 59
1
vote
1 answer

Should I have two XIBs to handle iOS5 and iOS6?

Just upgraded to the latest Xcode, and iOS6. When you create a new view controller with XIB it defaults to the iOS6 screen size, but you can change this manually to see how your app will look in iOS5. My question is, are you meant to have two XIBs,…
zardon
  • 2,910
  • 6
  • 37
  • 58
1
vote
1 answer

Can we search inside xib files?

I once had a bug where the xib still have a reference to a certain variable. The reason why the bug is so tough to find is if I search for that variable it doesn't show at all. Say I want to know which xib still have a reference iboutlet to certain…
user4951
  • 32,206
  • 53
  • 172
  • 282
1
vote
1 answer

IOS view without Xib

I've to create iPAD app and xib files wont have to be used. When I place the components such as text boxes and labels through code they would be a bit off and its kind of really hard to place them exactly as in the design. Is there any way that…
1
vote
1 answer

How to connect NSMenu to NSStatusItem in a Firebreath NPAPI plugin so the menu appears when clicking the StatusBar Item?

I'm working on getting a Status icon with a menu to appear in the Mac OS Status Bar, as part of an NPAPI Chrome browser plugin. Firebreath uses C++, while most of the libraries for Mac OS development utilize Objective C. I overcame that hurdle…
jamesmortensen
  • 33,636
  • 11
  • 99
  • 120
1
vote
0 answers

iOS application - How to package resources (nibs, images, sounds, etc.) to reuse later in multiple apps?

Possible Duplicate: iOS apps sharing assets I am trying to create a unique "About me" section for my iOS apps that I can reuse later in my other apps. In order to minimize the amount of maintenance work needed to maintain the "About" section of…
Pelpotronic
  • 550
  • 6
  • 11
1
vote
3 answers

creating a view with a button in xib

I want to design a view in xib and load it. (This will be used as a footer view of tableView, and I don't have a xib at the moment for the viewController which will have the tableView.) Suppose I will use this view from multiple places.(this…
eugene
  • 39,839
  • 68
  • 255
  • 489
1
vote
1 answer

iPhone multiple views with iPad single view both sharing a view controller

I've got an app I'm working on and I have quite a bit of data entry during user registration. On the ipad version of the app this is very simple because all the data entry fields can go on a single screen. However on the iphone version this doesn't…
Tony Ashworth
  • 485
  • 4
  • 16