Matt,
Update: Your project was a mess... you need to get back to the basics man. Here's a corrected version: http://www.mediafire.com/file/wddr123gwzkldty/New_IWasRobbed2.zip
// Present it as a modal view and wrap the controller in a navigation controller to provide a navigation bar in case you want to add edit, save, etc buttons
// ModalViewController is the view controller file name that gets the .h file included at the top, also make sure the XIB name is the same name
ModalViewController *addController = [[ModalViewController alloc] initWithNibName:@"ModalViewController" bundle:nil];
addController.delegate = self;
// This is where you wrap the view up nicely in a navigation controller
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:addController];
// You can even set the style of stuff before you show it
navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
// And now you want to present the view in a modal fashion all nice and animated
[self presentModalViewController:navigationController animated:YES];
// make sure you release your stuff
[navigationController release];
[addController release];
In interface builder, all I have in ModalViewController.xib
is a UIView
with some various controls on it like UIButtons or UIImageViews etc... Make sure the "view" hook-up for the UIView
with all those controls is hooked up to "File's Owner"
That's it! Nice and simple.