Getting error when trying to programmatically switch views?

I declared my view in my .h with:

IBOutlet UIViewController *flightdataview;

@property (nonatomic,retain) IBOutletUIViewController *flightdataview;

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

[selfpresentModalViewController:flightdataviewanimated:YES];

However I get this when I try to switch views:

'Application tried to present a nil modal view controller on target <FlightTrackControler: 0xa162770>.'

Any ideas?

Thanks.

Xcode-OTHER, OS X Mountain Lion (10.8.2)

Posted on Mar 7, 2013 10:21 AM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Getting error when trying to programmatically switch views?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.