Pages

Friday, March 8, 2013

Getting error when trying to programmatically switch views?

I declared my view in my .h with:

IBOutlet UIViewController *flightdataview;

@property (nonatomic,retain) IBOutlet UIViewController *flightdataview;

and I'm trying to switch views using this code:

[self presentModalViewController:flightdataview animated:YES];

However I get this when I try to switch views:

'Application tried to present a nil modal view controller on target .'

Any ideas?

Thanks.



View the original article here

0 comments:

Post a Comment