In my project, I have a custom @interface GraphView: UIView. Therefore, it GraphViewis a subclass UIViewand is intended to display a graph.
Then I create a new View Controller named Summaryusing NIB. In the interface builder, I just add UIToolbarat the bottom of the view.
In the implementation Summaryin the method viewDidLoad, I have the following code:
-(void)viewDidLoad {
[super viewDidLoad];
GraphView *myGraph = [[GraphView alloc]init];
[self.view addSubview:myGraph];
}
But I can’t get it.
Keith source
share