Graphics Programs Reference
In-Depth Information
Now the values of the
BNRItem
will be updated when the user taps the
Back
button on
the
UINavigationBar
. When
ItemsViewController
appears back on the screen,
it is sent the message
viewWillAppear:
. Take this opportunity to reload the
UIT-
ableView
so the user can immediately see the changes. In
ItemsViewControl-
ler.m
, override
viewWillAppear:
.
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[[self tableView] reloadData];
}
Build and run your application now. Now you can move back and forth between the
UIViewController
s you created and change the data with ease.