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

Override - (void)setBackgroundImage:(UIImage *)image forState:(UIControlState)state for nib

I have a nib in that I added a button and given background image to it. I created a sub class of UIButton and given that class to that button. I want to override - (void)setBackgroundImage:(UIImage *)image forState:(UIControlState)state for nib. …
Sachin
  • 333
  • 1
  • 4
  • 19
0
votes
1 answer

Cannot position custom view loaded from nib

I want to show some information annotated on a map and below the map I want to show a very simple custom date picker. I created a custom view in a nib and associated it with an instance of UIView. This same class contains this function to load the…
Shuaib
  • 779
  • 2
  • 13
  • 47
0
votes
1 answer

Lost my nib connection: how to get it back?

I am writing my very first genuine program for the IPhone. In the course of developing it, I decided to rename a subsidiary view controller (not RootViewController), so I renamed the .h and .m and .xib files. I had to modify a small amount of code,…
John R Doner
  • 2,242
  • 8
  • 30
  • 36
0
votes
1 answer

how to increase the width of two image view in a main view whose sizes are different and get variation in width when changing their orientation

How do I increase the width of two image views which are located inside a main view to landscapeorientation through a UIInterface nib file from portrait orientation, where the sizes of image view are different to one another? I need a increase…
Dhiyanes KaeYes
  • 93
  • 1
  • 11
0
votes
1 answer

About supporting iPhone 5 when using nib files and backwards compatibility

I've been looking for Apple's documentation and posts regarding this issue, but I didn't make it clear how should I deal with this, since most of information I found is about storyboards and autolayout feature. I'm using nib files instead of…
AppsDev
  • 12,319
  • 23
  • 93
  • 186
0
votes
2 answers

view frame in -loadView

A view in a view controller created using a nib has its frame at {0, 64, 320, 416}, origin starting right below the nav bar. In -loadView without a nib however, the view with the same frame is 44 pt off despite having the same frame (origin=(x=0,…
Morrowless
  • 6,856
  • 11
  • 51
  • 81
0
votes
4 answers

How can we load user interface on in iPhone application without using nib file?

How can we load user interface on in iPhone application without using nib file? I want to load user interface of application using .m file .Is it possible? how can we do that.
Roshni
  • 55
  • 5
0
votes
1 answer

Need some clarity on NIB file objects

I have a MainViewController class set up with a simple nib. On the nib i have only these few objects. I have set the popoverViewController's file owner to the MainViewController. I have set the popoverViewController class to my PVController class…
Just a coder
  • 15,480
  • 16
  • 85
  • 138
0
votes
2 answers

Loading empty nib causing crash on appstore review

Apple manages to get my app crash while loading a nib that only contains a view and a background color. I can't seem to get the crash on my device. Could it be a memory issue or am i doing something silly in the code? The report and code is attached…
David Karlsson
  • 9,396
  • 9
  • 58
  • 103
0
votes
2 answers

How to load a view when its outlets and actions are contained in the view being loaded?

I like to create a small custom view class named Configurator that derives from UIView. I would like the IBOutlets and IBActions to be placed in the Configurator itself (and not in any view controller). I have created the layout in IB where I also…
ragnarius
  • 5,642
  • 10
  • 47
  • 68
0
votes
2 answers

How to get the resource for NIB file on MAC OSX

Is there a tool to get all string for NIB file on MAC OSX? Right now, I have to copy it from the NIB editor. Thanks.
Yigang Wu
  • 3,596
  • 5
  • 40
  • 54
0
votes
1 answer

nsobject controller linked across two nib (xib) files. declaring nib instantiation

Apple's resource programming guide (RPG) states "it is better to distribute components across multiple nib files."... therefore, i have an associate window nib (Nib 2) that has an nsobjectcontroller that needs to be linked (selection self) to a…
Gabe Rainbow
  • 3,658
  • 4
  • 32
  • 42
0
votes
1 answer

mouseMoved event stopping when mouse is down

I have implemented a custom NSView (marked as ) and am able to get mouseUp:, mouseDown: and mouseMoved: events. To this I have acceptsFirstResponder returning YES, and also call the following in awakeFromNib: [[self window]…
Locksleyu
  • 5,192
  • 8
  • 52
  • 77
0
votes
1 answer

iPhone 3GS iOS 5 support (nibs to storyboards)

I have an iOS project that supports iPhone 3GS and on and requires iOS 5 or later. This project is using nibs instead of storyboards and is using ivars and properties the "old" way (i.e declaring ivars and the appropriate properties). I would like…
user-123
  • 874
  • 1
  • 13
  • 34
0
votes
0 answers

Cocoa Window not remembering its position when reopening

I started objective C last week so I'm just beginning to understand how the MVC design pattern works. Basically I downloaded this open source web app wrapper in cocoa: https://github.com/maccman/macgap and I want to alter it so it remembers its…
user2333700
  • 127
  • 1
  • 5