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

Change custom UIView to UIScrollView

In general: I got a custom UIView with a xib file as subview on a UIViewController. I add the subview programmatically in my controller. In my UIViewController: NSArray *subviewArray = [[NSBundle mainBundle] loadNibNamed:@"MyCustomSubView"…
NDY
  • 3,527
  • 4
  • 48
  • 63
1
vote
2 answers

Guidelines for creating non-view objects in a XIB file

Interface Builder provides the ability to create non-view/controller objects in a XIB file. In the past I have used this feature to instantiate and wire-up small components that manage view components in the XIB and this seemed a fairly reasonable…
teabot
  • 15,358
  • 11
  • 64
  • 79
1
vote
1 answer

How to call one xib file from another class,ios

I have googled a lot, but some where I am doing a mistake regarding the xib file. I have four buttons in view controller.xib file. Then when I tap the button one two three, alertinputtypetext has to be dislayed. Its done successfully. But when i…
Ratnakar
  • 443
  • 3
  • 11
1
vote
2 answers

How to avoid old xib cache on released iphone apps?

I'm developing my first iPhone app. One day, I renamed some files including xib file and its view controller. After that, my app began to use old xib file. I deleted xib file, but the old xib still was used. The code to init view controller…
js_
  • 4,671
  • 6
  • 44
  • 61
1
vote
1 answer

Added, then deleted a ~ipad.xib. Now NSInternalInconsistencyException when running on iPad

In an attempt to convert an iPhone app to a universal app, I added a MyViewController~ipad.xib to my project. I also set the Targeted Device Family to iPhone/iPad. I then attempted to undo those changes--deleted the MyViewController~ipad.xib and set…
Hap
  • 556
  • 1
  • 6
  • 20
1
vote
1 answer

iOS - Create xib in a project without xib

I have a problem with this project, It hasn't a xib file or storyboard. This project call immediately the appdelegate file into the main with this code: int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate"); and in the app delegate file…
Kerberos
  • 4,036
  • 3
  • 36
  • 55
1
vote
2 answers

Segue'ing to a new view from a custom cell

I've created a custom table where I can scroll through a list of items vertically, but I can also scroll left and right through those vertical index. How would I go about moving to a new view (in storyboards)? Does anyone know how to…
mhorgan
  • 886
  • 2
  • 11
  • 32
1
vote
1 answer

When we create the standard application in MacOS what is the first responder?

Xcode 4.3 will start producing mainmenu.xib I look at that mainmenu.xib It has an object named Main Menu I go and look at what are the menu points too Menu Item - Show All for example, link to unhideAllApplications: I try to find where is…
user4951
  • 32,206
  • 53
  • 172
  • 282
1
vote
2 answers

Alternating between several NSViews

What I need may be pretty basic, but I'm definitely not sure as to how to proceed (I've done that before but none of my choices seem that Cocoa-friendly). Ok, let's say we've got 2 NSViews - one next to the other: The one on the left serves as a…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
1
vote
1 answer

how to add a ready-to-use project ( created and started with application delegate but without xib,nib) to another project

I have a ready-to-use project ( created and started with application delegate but without xib,nib). Now I want to invoke and start it from another project. But I can't use initwithnib, how can I include and start this ready-to-use project from…
user1188849
  • 107
  • 1
  • 12
1
vote
1 answer

Linking it to a certain view controller within the Storyboard?

I have an action that I need to have linked to a certain view in the Storyboard. The code I currently have below links to the Storyboard's first view. How would I link it to a certain view controller within the Storyboard? FYI - this link is coming…
hanumanDev
  • 6,592
  • 11
  • 82
  • 146
1
vote
1 answer

Downgrading from Storyboard to XIB

So I understand that I can not use storyboard on anything less then 5.0. I have finished my App using storyboard only so am very basic to code. I am going to re-create my app using XIB, I will create a new XIB file for each of my storyboards. Want…
Bryce
  • 11
  • 2
1
vote
1 answer

IOS:Memory footprint increases when switching between views (ARC enabled)

Im new to X-code and have been searching everywhere and trying "everything" with no luck. If you can help me I will sing you a song :) Im making an IPad app that uses a lot of memory. The size of the project is about 100mb (many images) but the…
1
vote
1 answer

How can I load a landscape xib using one ViewController file?

I have a universal app. I'm using separate xibs for the portrait and landscape views. I have the app detecting the orientation and changing the value of a BOOL to true when I'm in landscape. I want to know how to load my landscape xib when that BOOL…
tallybear
  • 417
  • 3
  • 17
1
vote
0 answers

Can we assign UIView object to UIView object of XIB?

I have created UIView (say A) object through code and added all the sub views like UIButton, UILabel etc. through code. One other UIView (say B) I have created in XIB. now I am trying to assign A to B. When I Log the sub views of B after assigning,…
Developer
  • 6,375
  • 12
  • 58
  • 92
1 2 3
99
100