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

Loading device-specific iPad/iPhone UIViewController nib fails with .mm files

EDIT: where I write "class" below, I mean "the actual class name of the class", not literally "class"! For a UIViewController in a Universal app, we use: [[class alloc] initWithNibName:nil bundle:nil]; or [[class alloc] init]; // same thing with…
Adam
  • 32,900
  • 16
  • 126
  • 153
0
votes
1 answer

Design of the XIB doesn't match the running application

I am trying to design a custom UITableViewCell I have done my customizations, but the cell background doesn't seem to want to apply when the actual application is running for example. The customization of the text and everything applies but the…
Mahdi Yusuf
  • 19,931
  • 26
  • 72
  • 101
0
votes
1 answer

initWithNibName help: returning blank screen when trying to pass data

Ok so I am trying to pass a string from one view controller to another via the AppDelegate. I want to stay on the current view while this happens. This is the main body of the code I am currently using to do this: AppDelegate *dataCenter =…
0
votes
1 answer

Basic questions for Cocos 2D First App

I am new to Cocos 2D, I have studied cocos 2D framework and after two days i am just confused and wanted to ask you some question. I have to create an app with cocos2D framework for both iPhone and iPad target. When to use cocos Box 2d? Can we use…
Avtar Guleria
  • 2,126
  • 3
  • 21
  • 33
0
votes
3 answers

UIViewController not working for the first time

MyController *myViewController = [[MyController alloc] initWithNibName:@"myView" bundle:nil]; The nib file myView.nib has 2 uiimageviews and 2 uilabels. When I first init myViewController, all the 4 subviews are set as 0x0. The second time I dont…
Minar
  • 483
  • 1
  • 6
  • 13
0
votes
1 answer

Iphone: Does a custom made UIView needs a dealloc

I have a custom made uiview class, and i have a dealloc with other releasing call within it. In this custom uiview, I have 3 outlet of controls : buttons, textview etc. When the custom uiview deallocated, I received this error: Error for object…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
0
votes
3 answers

Attached a new controller to existing storyboard

I'm doing some iPhone development, and I'm using Storyboards to mock up and expedite my development. I didn't came from the conventional way of doing things, do I have to? Anyway, I have storyboard, …
mirageservo
  • 2,387
  • 4
  • 22
  • 31
0
votes
1 answer

Incorrect rotation from two views in one nib

Hope someone can set me straight. I have a utility app with one ViewController and a nib with two views. The first view is for custom transcription, and the second just has a TexView for the user to jot notes with the system keyboard. I have an…
Joel Wehr
  • 65
  • 8
0
votes
1 answer

Only the first top level UIView in nib is retained by nib loader?

I have a nib in my ARC-enabled project which contains two UIViews at the top level. One is the main view and connected to a property view in the nib's owner, as usual, as a weak reference. The second top level UIView is connected to another property…
occulus
  • 16,959
  • 6
  • 53
  • 76
0
votes
2 answers

Loading CustomView From nib file

I have a code that load the custom view from a nib file but there is a problem with the variable of that custom view. - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { // Initialization code HomeMainView*…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
0
votes
1 answer

nib file removed but key value connection remains - NSUnknownKeyException

I've been looking through the archives and haven't found a question that answers this. So I'm hoping this is something obvious I'm just missing. I have an iphone app that's been in the store with various releases over the last 2 years. I finally got…
krason
  • 45
  • 6
0
votes
1 answer

nib to storyboard

I am using Apple's app calculator but I need to put it into a storyboard not in a xib file. Can some one walk me through how to change it? The code from apples app is as follows: - (void) applicationDidFinishLaunching:(UIApplication *)application {…
Scubadivingfool
  • 1,227
  • 2
  • 10
  • 23
0
votes
1 answer

Finding all .nibs and extracting the resource from the path

I'm prototyping an app and I'd like to have multiple .nib layout files to let friends try out different layouts to see what works the best for them. I already have code to properly switch between a hardcoded array of known .nib files but I'd like to…
JDischler
  • 191
  • 17
0
votes
2 answers

Buttons working in ios6 stopped working in ios5

I load two buttons in one view from the NIB. I set this view as self.navigationItem.rightBarButtonItem in current viewController I set actions for these buttons Result: Buttons work under ios6 - both simulator and device and not working on ios5…
pro_metedor
  • 1,176
  • 10
  • 17
0
votes
1 answer

iPhone 5 app displaying correctly but not sensing touches in "extra" space

I "converted" my app to be iPhone 5 compatible by adding the Default-568h@2x.png startup image and all appeared to be working fine. The app is a simple Navigation Controller app which starts with a UITableView. By "appears to be working", I mean…
mluisbrown
  • 14,448
  • 7
  • 58
  • 86