以下代碼需要寫在上一級頁面push到下一級頁面的方法中。
ImageViewController *imageViewController = [[ImageViewController alloc] init]; //聲明一個實例
imageViewController.title = @"xxxxxxxxxxxxx";
imageViewController.hidesBottomBarWhenPushed = YES; //一定要放在push之前
[self.navigationController pushViewController:imageViewController animated:YES];
[imageViewController release];