How to make iOS 7 application backward compatible?

I browsed the Internet for several hours before posting this question. Here I go:

I am working on an application. I used X-Code 5. set the goal of deploying iOS 7.

I almost finished the interface for the application (for iOS 7). Yesterday, my team leader said that the client wants the application to be backward compatible, that is, it should work on iOS 6.1.

So, I started surfing the Internet (as my team leader also does not know how to do this). I found some Links, but was confused what exactly needs to be done. Yes, I am reading a post about stackoverflow and google too.

How can I make an iOS 6 app compatible? Should I use different XIB files? (It will be too much work).

One thing I did I installed for deploying Target iOS 6.1 or Later. The application was launched on the device. Interestingly, the application also works on iOS 7. But on iOS 7, the view was slightly distorted.

And I heard that if Deployment is in 6.1, you cannot upload it to the App Store. In addition, I set the deployment to 7.0, but then I could not launch it through the iOS6 device.

How can I develop an application so that it works for iOS 6.7 and loads in the AppStore too.

Help PLease. I have been working on application development for the last 4 months. I try very hard Mu. I know this question may seem silly to some people.

And I do not use storyboards. I use only XIB

+4
source share
2 answers

xib iOS6. iOS7, iOS6.

  • .
  • .
  • , , iOS7 , iOS6 .
  • iOS7 iOS6 .
  • .
  • iOS6/7 Deltas iOS6. .

iOS 6 iOS 7 , iOS 7. , 20 , iOS6. . iOS 7 Δy -20

enter image description here

url: https://developer.apple.com/library/IOs/documentation/UserExperience/Conceptual/TransitionGuide/SupportingEarlieriOS.html

- , .

+5

...:

1.DO XIB?

2. , , Target iOS 6.1 . . , iOS 7.

3. iOS 7 .

- .

4. . Deployment 6.1, App Store.

. iOS 7. 6.1 - . , .

5.Moreover 7.0, iOS6.

7.0, 6.1. :)

6. , iOS 6,7 AppStore .

, . , 7.0, iOS7.0. ( , iOS 6.1).

UPDATE:

Delta?

,

//Screen height
#define SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height)
#define SCREEN_35 (SCREEN_HEIGHT == 480)
#define SCREEN_40 (SCREEN_HEIGHT == 568)

UIView *newView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, SCREEN_40 ? 200 : 100)];

Xib Storyboard

enter image description here

+1

Source: https://habr.com/ru/post/1531567/


All Articles