​​ ​

The AppleCare Support Community will permanently close on November 20, 2026. Starting today, the site will no longer accept new posts and is available in a read-only state.


You can continue to find trusted guidance and support on the official Apple Support site. 


We want to thank the community members who have contributed their time and expertise to help others with their Apple products.


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

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.