Table ビューに UINavigationBar を追加しました。これが正しい方法ではないことはわかっていますが、他の方法があると思いますか?UINavigationBar と Table View を View Controller または Table View Controller に配置しようとすると、コンソールに次のエラーが表示されます。
Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency',
reason: 'A view can only be associated with at most one view controller at a time!
View <UITableView: 0x1ebfb200; frame = (0 0; 320 480); clipsToBounds = YES; opaque
= NO; autoresize = W+H; gestureRecognizers = <NSArray: 0x1e5a0500>; layer =
<CALayer:0x1e5a94f0>; contentOffset: {0, 0}> is associated with <UITableViewController: 0x1e59f8c0>.
Clear this association before associating this view with <SheetsSavedViewController: 0x1f879660>.'
スクロールすると、ナビゲーション バーがテーブル ビューと共に移動します。上から固定する方法はありますか?または、上記のエラーを修正してください...