I have made and submitted an iOS iPhone app that was reviewed and published to the App Store, this app only supports iPhone devices and not iPad devices. I am making an iPad compatible app to go along with the iPhone app. Is there a way I can submit the iPad app so that it integrates with the iPhone version?
What I am trying to say is: can I upload my iPad app alongside my iPhone app so that the user can download the app on both devices (the iPad app and the iPhone app have the same SKU/ID) without modifying the iPhone app/upload binary?
What I am trying to say is: can I upload my iPad app alongside my iPhone app so that the user can download the app on both devices (the iPad app and the iPhone app have the same SKU/ID) without modifying the iPhone app/upload binary?
No, I think it is not possible.
When you create an Xcode project you can choose a platform between iOS, macOS, watchOS and tvOS. iOS applies to both iPhone and iPad. So, if you want to make your app compatible with iPad you have to enable the 'iPad' option in your Xcode project under 'Deployment Info'. From that point your app will run both on iPhone and iPad, but you have to upload a new binary to make it available on the App Store.
If you need to use custom code based on whether the device the app is running on is an iPhone or an iPad you can use the enum UIUserInterfaceIdiom to achieve the goal. An example could be like this:
When you create an Xcode project you can choose a platform between iOS, macOS, watchOS and tvOS. iOS applies to both iPhone and iPad. So, if you want to make your app compatible with iPad you have to enable the 'iPad' option in your Xcode project under 'Deployment Info'. From that point your app will run both on iPhone and iPad, but you have to upload a new binary to make it available on the App Store.
If you need to use custom code based on whether the device the app is running on is an iPhone or an iPad you can use the enum UIUserInterfaceIdiom to achieve the goal. An example could be like this:
Code Block if UIDevice.current.userInterfaceIdiom == .pad { /* Code for iPad */ }