xib

How to load an XIB?

I have an app with 2 screens (MainViewController and AboutViewController). Upon the user clicking a button, I'd like to load the AboutViewController screen, which is defined in another XIB. Seems simple, but I can't seem to find my google-fu today. How do I pull this off? ...

See a white band at the bottom of screen while adding view to window programatically in iphone?

Hello all, When I developed a view based project in XCode, My view works fine. But when I use a window based project and create a view on my own and try adding it as a subview to window, it gives me a white band at the bottom. I never faced this issue before but facing it first time. Anyone having a solution? Tnx in advance. ...

How to change XIB in a tab bar application?

Hello, My iPhone app is tab bar-based, but I would like to fire an action which switches out the tab bar controller view completely and replaces everything in the window with a view from a different XIB file. I would guess this has to be done in the application delegate (since this is the "chief" class), but I don't know the right way t...

XCode: Rearrange Output/Main Window

Is it possible to move the output/find window that sits above the source editor to the bottom? I was hoping there might be a hidden preference some where, or perhaps someone has edited the nib file to do the re-arrangement. cheers ...

SIGABRT on iPhone when changing xib

I've just finished off an app for the iPhone which, until today, ran fine on the iPhone simulator and actual devices. I tried changing the xib which is loaded in the applicationDidFinishLaunching method in my application delegate class - all I did was change the string in initWithNibName. When I launch the app on the simulator, the De...

Tool for viewing structural xib differences?

Is there a diff tool for viewing differences in XIB's? It could display what graphical elements are in one xib while missing in other? ...

Arbitrary objects to handle actions?

Hi, My question may be a bit stupid, but why can't any object instantiated in IB handle, say, button click? I mean I'm able to add my own object to a xib, and link outlets to cotrols and control actions to object's method, but once I press the button everything just crashes (uknown selector). Do you guys have a hint around that? EDIT:...

terminating_due_to_uncaught_exception while trying to change views

I've been hitting this bug that I don't know what is wrong. When I debug this code and it hits here the program will lock up when it hit the addSubView line and says terminating_due_to_uncaught_exception I'm not sure if I'm forgetting something in interface builder or what but the codes does compile. ViewTypeView is the View's contro...

Localizing a modern xib-based Mac application

Ours is an open-source Mac application localized by volunteers. These volunteers will do their work on special localization builds of the software (with unstripped nibs), then send us the changes to integrate into the original xib and strings files. The problem is that, while there is a way to integrate string changes without blowing aw...

Why won't my awakeFromNib fire?

I am starting to move more of my view hierarchy construction to IB. I have a nib file called "AlignmentViewController.xib" in which I set up my view hierarchy with AlignmentViewController as the files owner. This works fine. One of the methods I remain fuzzy on is awakeFromNib. In the follow code snippet of AlignmentViewController I a...

XIB File Not Loading Properly In Interface Builder

I was creating a new View-based Application in XCode, adding some outlet and actions, using the IBAction and IBOutlet tags, into the automatically created controller view header file. I then double clicked the 'project_name_ViewController.xib' to launch the interface builder. However the outlets and actions did not appear in interface b...

Monotouch iPhone Landscape Mode

How do I keep a Monotouch iPhone app in landscape mode when loading a new view controller from an xib? To switch to landscape mode when the app loads I use: app.StatusBarOrientation = UIInterfaceOrientation.LandscapeRight; I would like to be able to rotate the view in interface builder and design the interface. I can hit the rotat...

.xib not loading right (iPhone)

For some reason when I load a new view (from a .xib) it'll load the class files, BUT NOT the .xib!! Here's my code: login *lo =[[login alloc] initWithNibName:@"login" bundle:nil]; self.log = lo; UIViewController *loginview = log; [UIView setAnimationTransition:UIViewAnimationCurveEaseIn forView:self.view cache:YES]; [loginview viewWill...

Is it possible to directly edit the XML of XIB files?

I tried to do it, but Interface Builder refuses to open the resulting file: "Interface Builder was unable to determine the type of [file name]" ...

iPhone: Nib files not working correctly when copied with *.m & *.h files from 1 project to another

I've been building projects in pieces, prototyping different aspects of the whole in separate demo projects. I'm now in the process of migrating class and nib files from the prototypes into the target project and when I do so the nib files aren't behaving as they did in the prototype. I've been doing the migration by using the "Add Exist...

technical way of managing files - grouping files in xcode

I am in iPhone development since last 3 months. Usually, While inserting a view Controller, I just right click on Classes & add new group. & Within that group I just add my new view controller's .h, .m & .xib file. Before my question, let's see what I have done in my project. My questions are something like this Is it in proper w...

Reducing differences in xibs

I've been noticing superfluous changes in my xib files with Interface Builder 3.2.1. Here are a few of them: - <reference key="NSNextResponder"/> + <nil key="NSNextResponder"/> - <reference key="NSSuperview"/> - <array class="NSMutableArray" key="IBDocument.EditedObjectIDs"> - <integer value="6"/> - </array...

Self Deleting iPhone app

I have a iPhone app which needs to have a self destruct option. This app is going to be use on sensitive locations and holds some algorithms which are not to be known by anybody except the iPod Holder. What would be the most "complete" way of deleting the app? I was thinking of some how writing zeros to the nib file. or the actual appl...

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, such as import statements, but the coding effort quickly recovered and all compiled and ...

iPhone Interface Builder - Moved resources to sub-directory, now IB can't see them!

I had a bunch of images in my Xcode project. They were originally added without choosing "Create Folder References for any added folders". So I removed the references and re-added as per these instructions http://stackoverflow.com/questions/1401338/include-a-resource-directory-hierarchy-into-app-bundle Unfortunately, Interface Builder w...