Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1091543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:32:43+00:00 2026-05-16T23:32:43+00:00

i am created Universal application, in that i used UIModalPresentationFull, for displaying MFMailComposerSheet in

  • 0

i am created Universal application, in that i used UIModalPresentationFull, for displaying MFMailComposerSheet in iPad, which helps me to show the full screen of a MailComposer view in landscape view of ipad. When i run the application in ipad simulator i works well. If i set it to iPhone simulator 3.0 or 3.1.3 it shows the error like “error: ‘UIModalPresentationFullScreen’ undeclared (first use in this function)” when i comment it and run in iPhone simulator it works what would be the solution for this error or, else is that any method replaces “UIModalPresentationFull” works in both ipad and iphone?

Thanks and regards
Venkat

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:32:44+00:00Added an answer on May 16, 2026 at 11:32 pm

    UIModalPresentationFullScreen is only available in the 3.2 (and above) SDK so you can’t compile it with a SDK lower than that.

    However, you don’t need to for a universal application – you compile it against the highest SDK you are going to run on and then you have to check at run-time if the methods / classes you are using are available. You set this in your build settings : Base SDK should be set to the highest SDK you are using (probably 3.2 for the iPad) and iPhone OS Deployment Target should be set to 3.0 – the lowest SDK on which your code can run.

    You should be doing this each time you use a 3.2 only bit of code :

    if ([controller respondsToSelector:@selector(setModalPresentationStyle:)])
        [controller setModalPresentationStyle:UIModalPresentationFullScreen];
    

    Then, even though you have compiled against the 3.2 SDK, when you run it on lower SDK devices, this method will not be run.

    I test this on an iphone that still has 3.0 SDK on it. I don’t know exactly how you would test in the simulator with a lower SDK sorry.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created the setup project for the application and I can see that the
I have made my application universal for iPhone and iPad (window-based application; universal) from
I am building a universal app that uses a UISplitViewController for the iPad, and
I am creating an universal application (run on iPad and iPhone). I want to
I created a universal app for the iPhone-iPad. I'm only working on the iPhone
I created a program using dev-cpp and wxwidgets which solves a puzzle. The user
I created a simple .NET windows application in Visual Studio 2005 and on just
I created a Rails application normally. Then created the scaffold for an event class.
I'm very frustrated with this problem. After one week of waiting my universal iPad
how can I set up a Universal project which has support for iAd (just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.