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 7681107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:16:01+00:00 2026-05-31T18:16:01+00:00

I want to create an iPhone/iPad applications using Corona SDK. But they should be

  • 0

I want to create an iPhone/iPad applications using Corona SDK. But they should be compiled as 2 separate apps (for iPhone and iPad separate) – while keeping the same code base.

In Objective C I just created 2 separate targets for iPhone and iPad, defined a set of constants for both of them, added different images to each of the targets.

I would like to get the same behavior in Corona application. Is this possible? And how to do this?

  • 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-31T18:16:02+00:00Added an answer on May 31, 2026 at 6:16 pm

    I don’t know of any built-in way to do it but it’s fairly easy to create an IsTargetIPad() call and test against that in your code.

    A slightly more advanced approach is to build a very primitive preprocessor where you run a script against your main files and set it to remove code blocks based on target. It adds the advantage of letting you put in all kinds of target-specific flags with no overhead. The process is simple: you code in one directory using special tokens that the preproc can catch and then to test/build you just run the preproc and have it copy the files out to two (or however many you want) folders dedicated to each target. You can do this with pretty much any basic scripting language.

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

Sidebar

Related Questions

I am an iphone/ipad apps developer.Now I also want to create mac apps. I
I want to be able to create a GUID/UUID on the iPhone and iPad.
i want to create a webpage on iphone , but i can't complete it
I am going to create an app for iphone/ipad and I want to known
I want to create a comma-separated string like this. NSString *list = @iPhone,iPad,iPod; I
I want to create a native app/web app which works on iPhone, iPad. I
I want to build two apps, one optimized for iphone and one for ipad.
Possible Duplicate: iPhone development on Windows Is it possible to create iPhone apps using
I successfully created an Iphone application...Now I want to create the equivalent Ipad application
I want to create an Ipad/iPhone app that will act as a catalog to

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.