次の UIViewController クラスがあります。
ファイル: ResultsDataViewController.h
@interface ResultsDataViewController : UIViewController
@property (nonatomic, strong) NSString* name;
@end
ファイル: ResultsDataViewController.m
#import "ResultsDataViewController.h"
@interface ResultsDataViewController ()
@end
@implementation ResultsDataViewController
@synthesize data;
次に、クラス名 Plot.h/m の UIView があります
プロット.h:
@interface PlotGraph : UIView <CPTBarPlotDataSource, CPTBarPlotDelegate>
@property (nonatomic, strong) NSString* receivedName;
@end
プロット.m:
#import "Plot.h"
@interface Plot()
@end
@implementation PlotGraph
@synthesize receivedName;
...
=====
質問:
UIViewController から name の値を渡し、それを UIView の変数 receivedName に割り当てるにはどうすればよいですか?
UIView Plot は、私の UIViewController DataViewController のビューです