first, let me start by saying that I'm pretty new to the iPhone, so I apologize for my ignorance.
I have a UITableView in which I want to add new elements. When the add button is clicked, I want the modal screen to slide up, where the user enters text for a new item.
I read from Apple the Table Programming Guide for the iPhone , and they have an example that supposedly does what I want:
- (void)addItem:sender {
if (itemInputController == nil) {
itemInputController = [[ItemInputController alloc] init];
}
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:itemInputController];
[[self navigationController] presentModalViewController:navigationController animated:YES];
[navigationController release];
}
However, they do not explain what itemInputController is. As far as I can tell, it should give me a modal view with one text box and a navigation bar with "Cancel" and "Save" in it. Should I create this view myself in the Builder interface? Or is it a standard thing that I need to import somehow? Can someone help me decrypt this or, conversely, show me another way to make it work?
source
share