2
我想將UITableView的部分標題推送到另一個視圖控制器的部分標題。 但我無法想出一種方法來讀取現有的部分標題。現有的部分標題是動態構建的,我寧願重複使用它,而不是重新構建它。讀取UITableView的字符串值部分標題
if (indexPath.section == 0) {
SecondViewController *secondViewController = [[SecondViewController alloc] init];
secondViewController.strValueHolder = FOO_section.sectionTitle; // FOO Code
[[self navigationController] pushViewController:secondViewController animated:YES];
[secondViewController release];
}
謝謝你的迴應。我選擇了第二種選擇,使用自定義方法並從多個地方調用它。 – 2011-03-28 13:22:56