3 つのセクションを持つグループ化されたスタイルのテーブル ビューがあります。辞書配列から情報を取得します。
私のアプリは、UITable (マスター) と 1 つの UIView (ルート) でうまく動作します。しかし、選択したセルから、UIView (ルート) に直接接続されている 3 番目の UIView に情報をプッシュし続けたいと思います。
-UIView (ルート):
.h
@property (strong, nonatomic) id detailItem;
.m
#import "DetailViewController.h"
@interface DetailViewController ()
- (void)configureView;
@end
@implementation DetailViewController
@synthesize detailItem = _detailItem;
@synthesize courseDetailLabel = _courseDetailLabel;
#pragma mark - Managing the detail item
- (void)setDetailItem:(id)newDetailItem
{
if (_detailItem != newDetailItem) {
_detailItem = newDetailItem;
// Update the view.
[self configureView];
}
}
- (void)configureView
{
// Update the user interface for the detail item.
if (self.detailItem) {
self.courseDetailLabel.text = [[self.detailItem valueForKey:@"courseDetails"] description];
}
}