How to pass Value from UIViewController to UIView?
<p>i have creted a UIView Subclass:</p>

<pre><code>@interface GraphClass : UIView
{
    NSString *str;
}
</code></pre>

<p>And i have assigned GraphClass: to a View of an UIViewController Class named:</p>

<pre><code>@interface GraphViewController : UIViewController
{


}
</code></pre>

<p>Now i want to pass  NSString *amount,value from another UIViewController Class</p>

<pre><code>@interface MonthsListController : UIViewController
{
}
in viewDIdLoad

- (void)viewDidLoad
{
GraphClass *graph = [[GraphClass alloc]init];

graph.str = @"abc";
</code></pre>

<p>But am getting NULL value if i print str Value in GraphClass</p>

<pre><code>-(void)drawRect:(CGRect)rect
{
    NSLog(@"Amount is = %@",str);//NULL VAlue :(
}
}
</code></pre>
