[英]UISearchBar setBarTintColor unrecognized selector exception in ios6
[英]Subclass of UITableviewContrller exception in IOS6
這段代碼在iOS5.1中工作得很好,但是在iOS6上卻遇到了問題。
rightNav = [[UINavigationController alloc] initWithRootViewController:parkViewController];
[rightNav.view setFrame:[detailView bounds]];
[rightNav.navigationBar setBarStyle:UIBarStyleBlackOpaque];
[detailView addSubview:rightNav.view];
該應用程序因以下異常而崩潰:[UITableViewController loadView]加載了“ ParkViewController”筆尖,但未獲取UITableView。
parkViewController是UITableviewController的子類。
detailView是一個UIView。
任何意見,將不勝感激!
您說parkViewController
是UITableView
的子類。
您應該使它成為UITableViewController
的子類。
在這種情況下,請確保在筆尖中正確連接了控制器的tableView插座。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.