Questions tagged [ios-universal-app]

An iOS universal app is an app that can be run both on iPhone, iPhone with retina screen, iPad and iPad with retina screen.

An iOS universal app is an app that can be run both on iPhone, iPhone with retina screen, iPad and iPad with retina screen.

Developer guide for Creating a Universal App

284 questions
1
vote
4 answers

Detecting if iPhone or iPad without opting for Universal App

I really want this to work: if UIDevice.current.userInterfaceIdiom == .pad { print("iPad") } else { print("not iPad") } However, my app only prints "not iPad" even though I am using an iPad. I have Devices (under Deployment Info) set to…
J.Treutlein
  • 963
  • 8
  • 23
1
vote
1 answer

How to upload an app without having landscape mode through AppLoader?

I am trying to upload an Universal app which supports only Portrait mode. But while uploading the package through AppLoader, it's want me to enable Landscape mode. But I don't want to support Landscape mode in my Application. Please have a look the…
1
vote
1 answer

image assets catalog and iOS device family

I have set the app for only iPhone but if I keep the images at Universal will it be used for iPhone This is very much confusing please guide
Rajan M
  • 345
  • 3
  • 22
1
vote
1 answer

Different Launch functions for iPad than for iPhone (in Swift 3)?

I'm trying to trigger a function in my universal iOS app for iPad only. It shows a set of background images on the iPad version of the app, but I don't want that function to run in the iPhone version. So this needs to happen in code, and I was…
Brewski
  • 654
  • 3
  • 14
  • 29
1
vote
0 answers

Creating multiple SKS files vs using if statements to determine screen size

I have been researching all day for a proper implementation of case for iPhone and a Case Ipad sizes. Some people use helper classes to "scale" "or "fit" SpriteKit scenes into the proper view in GVC. I am looking for direction because it is a little…
upallnight
  • 89
  • 12
1
vote
1 answer

SKScene View Rendering Issues (see photo)

Click ----> for pic :) This is my GameScene as of now, its hard coded and linked to a Global File of that holds scene data override func didMoveToView(view: SKView) { super.didMoveToView(view) playButton.hidden = true let…
upallnight
  • 89
  • 12
1
vote
0 answers

Which is the best approach to isolate tests on universal iOS apps?

I'm working on an universal iOS project and my goal is to add as many useful tests that I can. I'm stuck in a point where I have a different behavior between the iPhone and iPad versions and I would like that some tests run only on a specific…
1
vote
2 answers

I need to set a separate Main Interface for iPhone and iPad, but Xcode only lets me set one interface for the project when it is universal

I am unable to set a specific Main interface for iPad, even though my app is universal. Xcode used to have separate tabs for the Deployment Info on iPhone and iPad but now they are they same. However my game is radically different on iPhone and…
mguniverse
  • 139
  • 2
  • 6
1
vote
1 answer

apple-app-site-association universal link signing issue

I am working on universal linking , I have four files as mentioned below (through which my domain is SSL certifed), ACertificate-1.cer ACertificate-2.cer ServerCertificate.cer Private.key and The Json file { "applinks": { "apps": [], …
ɹɐqʞɐ zoɹǝɟ
  • 4,342
  • 3
  • 22
  • 35
1
vote
1 answer

Merge several apps into one new

I have an old app on app store that is divided into one free version for both iPhone and iPad and one paid version for both, so four different apps in total. I am going to make a complete new version of it so that it gets easier to handle. I want…
Mangy92
  • 621
  • 1
  • 10
  • 25
1
vote
1 answer

Can I use size classes in xib file in IOS 8.1?

My app is a universal app, i.e. the app is for iPhone_portrait and iPad_landscape. I searched a lot about how to deal with iPhone and iPad, and I found that I can make my add adaptive using size classes, especially after IOS 8 size classes my…
Rawan
  • 1,589
  • 4
  • 23
  • 47
1
vote
1 answer

Xcode builds nib files with an incorrect name suffix for an Universal app

This is really strange, and it seems to be happening to some xib files randomly. I am currently porting an iPad app to iPhone, and for this I am creating new xib files and adding the ~iphone suffix to them. This works great and I never had a problem…
JP Illanes
  • 3,665
  • 39
  • 56
1
vote
1 answer

Autolayout: UIButton ends up beyond the screen boundary

I'm building a universal application with XCode, and I'm following the procedure from the 3rd chapter of "Beginning iPhone Development with Swift". I have a view with two buttons named "left" and "right", and a label with empty text. That's how…
Ramy Al Zuhouri
  • 21,580
  • 26
  • 105
  • 187
1
vote
1 answer

app crashes at run before reaching my code xcode6.1 Universal App Objective-C NSKeyedUnarchiver iOS 7.0 iOS 8.1

App crashes at run under 7.1 simulator or device and runs fine on both with in 8.1 with StackTrace: appName[10676:607] *** -[NSKeyedUnarchiver initForReadingWithData:]: data is empty; did you forget to send -finishEncoding to the…
1
vote
0 answers

Any precompile macro to determine iPhone and iPad

I have logics like DerivedClass extends iPhoneBaseClass DerivedClass extends iPadBaseClass Any precompiled macro can achieve this by just one single DerivedClass for universal iPhone & iPad project ?
Forrest
  • 122,703
  • 20
  • 73
  • 107