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?
...
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.
...
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...
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
...
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...
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?
...
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:...
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...
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...
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...
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...
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...
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...
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]"
...
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...
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...
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...
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...
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 ...
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...