Even after entering into viewDidLoad, the view controller`s view is not visible
<p>There is a unique problem in my iPhone app that happens on a rare basis. I have a share button on screen which on being clicked opens up the share view controller screen responsible for facebook,twitter,sms and email sharing. Most of the time behaviour is good. But sometimes the share button stops working at all. The interesting thing in such cases is that on click of the button,flow goes into the action method of the button and subsequently into the viewDidLoad of my share view controller as well. But the share view controller screen does not appeaer. My button action method consists of the fllowing code :</p>

<pre><code> _shareViewController = [[ShareViewController alloc] init];

 NSLog(@"%d",[_shareViewController retainCount]);

[[[UIApplication sharedApplication] keyWindow] addSubview:self.shareViewController.view]
</code></pre>
