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
9
votes
3 answers

Dynamic Storyboard or Xibs/Nibs

Our company is developing a quite large app for the iPad. Eventually we want to be able to customize the UI per customer (tenant) and maybe even per user (of that customer). We started off in HTML5 but are moving to native. I've done some reading on…
Yvo
  • 18,681
  • 11
  • 71
  • 90
9
votes
2 answers

NSTableView makeViewWithIdentifier across nibs

I have a similar question to Cocoa - View-Based NSTableView, using one cell in multiple tables, amplified by Apple's own docs for makeViewWithIdentifier:owner: "Typically identifier is associated with an external NIB in Interface Builder and the…
justin k.
  • 504
  • 1
  • 6
  • 15
8
votes
1 answer

Create a custom view using a nib and use it in a window

I have been struggling quite a bit with this problem and I can't seem to figure it out by myself. This is the situation: I want to have a custom Nib-based view, with its own ViewController. I then want to add this view to a window. Therefore the…
Besi
  • 22,579
  • 24
  • 131
  • 223
8
votes
1 answer

Loading UIView from xib, crashes when trying to access IBOutlet

I have a xib-file with a small UIView on it, which in turn contains some labels. Now, I'm trying to load that UIView into an existing UIViewController, and change one of the label-texts. The reason I want to do it this way, is that the UIView will…
indivisueel
  • 83
  • 1
  • 3
8
votes
2 answers

How to unit tests a private or internal function in Swift?

So I created a custom an abstract class who inherit from UIViewController (Inherited by RebloodViewController) class named MainViewController. In this class I write a reusable nib registration function class MainViewController: RebloodViewController…
Putra
  • 399
  • 9
  • 23
8
votes
2 answers

Single View controller with multiple nibs?

I am trying to construct a view controller that can be 'skinned' -- that is, have multiple appearances or personalities but that uses a single controller. Each view will have the same buttons, etc, but I would like to be able to load each nib file…
Billy Pilgrim
  • 1,842
  • 3
  • 22
  • 32
8
votes
3 answers

Swift 3 Load xib. NSBundle.mainBundle().loadNibNamed return Bool

I was trying to figure out how to create a custom view using xib files. In this question the next method is used. NSBundle.mainBundle().loadNibNamed("CardView", owner: nil, options: nil)[0] as! UIView Cocoa has the same method,however, this method…
Alexei
  • 511
  • 1
  • 10
  • 22
8
votes
1 answer

Removing the battery icon in xib file

How does one remove this annoying battery icon located at the top right of a xib file? I am using a xib for my UI layout of a particular tableView cell. I am doing some tight frame setting in the top right area and this battery image simply makes…
Alex Bollbach
  • 4,370
  • 9
  • 32
  • 80
8
votes
3 answers

NSArrayController initialization

I am having trouble getting an core-data backed NSArrayController to work properly in my code. Below is my code: pageArrayController = [[NSArrayController alloc] initWithContent:nil]; [pageArrayController setManagedObjectContext:[self…
CJ.
  • 1,034
  • 1
  • 9
  • 20
8
votes
3 answers

Creating a custom view using a xib

Using MonoTouch, I'm trying to make a custom view, so I can reuse this view multiple times in a screen. (it's a bunch of labels and buttons) After reading the answer to this post: How to add a custom view to a XIB file defined view in monotouch I…
Ronald
  • 417
  • 5
  • 11
8
votes
3 answers

Convert NIB Files to XIB Files

Is there a way to convert NIB files to XIB files so that I can open them in Xcode 4? Once I have edited them, is there a way to convert them back to NIB?
Elmo
  • 6,409
  • 16
  • 72
  • 140
7
votes
6 answers

Should or should not use nib files ?

I'm new to iOS development. I've read through some of the source code I've found online and lots of them does not include a single nib file. All the view seems to be drawn manually from code. What is the benefits of having/not having a nib file? Why…
Luong Huy Duc
  • 458
  • 7
  • 17
7
votes
3 answers

Using multiple nib files with a single view controller?

Background I'm using interface builder to create the UI for an app I'm working on. The app has a single screen that displays a series of buttons. Clicking on a button displays an associated view which overlays the buttons. Clicking another button…
Camsoft
  • 11,718
  • 19
  • 83
  • 120
7
votes
2 answers

why does the init-method of a custom nib-based table cell not get called

I have a nib-based table view cell which I created in Interface builder. I set the class of the table view cell to FooTableViewCell which extends from UITableViewCell. In FooTableViewCell I override the init method like this: -(id)init{ if…
Besi
  • 22,579
  • 24
  • 131
  • 223
7
votes
4 answers

Nib IBOutlet causes app to crash

Really need your help! I've been through every possible post addressing this issue and nothing seems to work. So I'm using a .xib file to create a subview within ProfileFoldingCellView.swift, which works perfectly until I attempt to add an IBOutlet…
Yoli Meydan
  • 161
  • 1
  • 5