Is it possible to set property object variable in another class in iphone?
<p>I have a property in my UIView class, something like that:</p>

<p>myView.h</p>

<pre><code>@ interface MyView: UIView {

id refView;

}

@property (nonatomic, retain) id refView;
</code></pre>

<p>MyView.m</p>

<pre><code>@synthesis refView;
</code></pre>

<p>Then in another class can I set the refView property of MyView something like that:</p>

<p>MyViewController.h </p>

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

UIView *myView;

}

@property (nonatomic, retain) IBOutlet UIView *myView;
</code></pre>

<p>then in MyViewController.m:</p>

<pre><code>[self.myView setRefView:someValue];
</code></pre>

<p>When I do that I get this warning: UIView may not response to '-setRefView:' ...</p>

<p>So, is the above way is right or what's the right way to do it. Any help and explanation would be greatly appreciate it. Thanks.</p>
