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
0
votes
1 answer

NSOperationQueue callback on main thread still not updating UI appropriately

So I have a UIViewController which loads data asynchronously using NSOperationQueue. I had the commented out line at first when I was using seed data, but now I have switched to using the actual service. The data gets to this method appropriately,…
Alec
  • 1,646
  • 3
  • 19
  • 35
0
votes
1 answer

iPhone App Crashes on button click

I made my project in storyboard in, due to issue with the custom UITableViewCell I have made a new project, copied all of the data to my new classes and copied my buttons, images etc from the storyboard views to new project's nib/xib files. Now When…
Omer Waqas Khan
  • 2,423
  • 4
  • 33
  • 62
0
votes
1 answer

How to integrate iAD without a xib file

I have an app that does not use any form of storyboard or xib or nib. I have used iAD before but it involved dragging on and declaring in the code. How do I make the banner add view a subview, (my knowledge of such programming is poor, I have just…
user1432813
  • 162
  • 2
  • 10
0
votes
1 answer

iOS nib issue, causing crash

I have a rather peculiar error in my app It only just started happening after it being fine for so long, all my nibs are wired up correctly from what I can see Any other advice would be greatly appreciated The error is as follows 2012-07-06…
blakey87
  • 153
  • 3
  • 14
0
votes
2 answers

Getting two adjacent UILabels to both align on the inside edge

I have a UIView which contains two UILabel objects, which are populated programmatically. I want the left UILabel to be right-aligned, and the right UILabel to be left-aligned. This is my pretty ASCII representation: ___________________ | ______ …
Alec
  • 1,646
  • 3
  • 19
  • 35
0
votes
2 answers

loading another nib into a viewController

I have a ViewController that includes its own .nib file, I am wanting to load another .nib into this ViewController that will be a menu of sorts... however I am just not sure how to do this and was hoping for some help. Before I show you the code I…
HurkNburkS
  • 5,492
  • 19
  • 100
  • 183
0
votes
2 answers

iPhone custom UIView bounds

I am trying to create a custom UIView that is stored in a nib so that I can position it using Interface Builder. I have created a class called RippleView that extends UIView. I'd like to position this view as a subview using Interface Builder. To do…
Kai
  • 9,444
  • 6
  • 46
  • 61
0
votes
1 answer

UIImageView background color but not image displaying

I have a UITableViewCell nib file in which there is a UIImageView and a UILabel. I have outlets for both of these to my controller as well as an outlet for the cell itself. I am setting the label and image programmatically, but the image does not…
Alec
  • 1,646
  • 3
  • 19
  • 35
0
votes
4 answers

How can I load a xib file in another view?

I have 3 xib files, 3 buttons on all of the xib files and I am loading the view dynamically when a button is pressed. For instance when button 1 is clicked then view 1 appears and similarly for button 2 and button 3. Is there any way to preserve…
ChArAnJiT
  • 238
  • 1
  • 7
  • 23
0
votes
0 answers

Custom UITableViewCell not showing all properties

Kind of strange issue here: I've got a custom nib UITableViewCell with a bunch of labels and an imageview. I set the file owner to UITableViewDelegate/Datasource, I set the custom class in nib file, and I loaded it in to my VC like this: -…
Sean Danzeiser
  • 9,141
  • 12
  • 52
  • 90
0
votes
1 answer

Multiple objects with NIB in NSMutableArray

I have a noob-question, that might be similar to Dynamically create multiple instances of a UIView from a NIB but I'm missing the big picture. I've got a class with NIB, called UserViewController and I need to create multiple instances, based on the…
Anders
  • 251
  • 3
  • 13
0
votes
2 answers

iOS: create a XIB from a UIView

I have lots of Views in old projects that I have layed out in code, using absolute positioning. That code is really hard to maintain. I'd like to port the code to using interface builder, but I'd have to layout every view again by hand. Is it…
avf
  • 858
  • 11
  • 24
0
votes
3 answers

Why does a nil nib name not work?

Usually when I pass in nil as the first parameter of initWithNibName:bundle: it will automatically find the name, but sometimes it doesn't and it just shows a black screen. Under what circumstances does this happen? There are no errors in the…
borrrden
  • 33,256
  • 8
  • 74
  • 109
0
votes
1 answer

Loading order of top level objects in nib

Is the loading order of top level objects in a nib file random or can it be determined? I thought it would load the objects in the order I put them in in Interface Builder. But that doesn't seem to always be the case. I wanted to create an inspector…
DrummerB
  • 39,814
  • 12
  • 105
  • 142
0
votes
4 answers

UIViewController initWithNibName results in nil view

I'm trying to make a view controller that will always load the same nib. My initialization code looks like this: -(id)init { NSString* nibName; if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) nibName = @"XIB_iPad"; …
Seth
  • 5,596
  • 8
  • 42
  • 56