D
D
DimaDmA2016-12-10 16:33:57
iPhone
DimaDmA, 2016-12-10 16:33:57

How to optimize ios application for iphone 6?

Good afternoon! There is an application that works perfectly on iphone 5, but on 6 we see such a picture, in which direction should we move? how to stretch app to full screen
qIZBi6ZCcSI.jpg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
AntiVIRUZ, 2016-12-15
@AntiVIRUZ

Are you sure that you should continue to use the library, how outdated it is, that it is not able to adequately resize elements depending on the screen?

I
illuzor, 2016-12-11
@iLLuzor

Maybe just fix the layout and set the correct constraints?

D
DimaDmA, 2016-12-12
@DimaDmA

In general, I found the problem in the obsolete tobacco CRTabBarController The
library https://github.com/consumerreports/crtabbar/tree/m... used
this hack

- (id)init
{
    if(self == [super init])
    {
        screenHeight = SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0") ?  480.0f : 460.0f;
        screenHeight = IS_IPHONE_5 ? 568.0f : screenHeight;
        screenHeight = IS_IPHONE_6 ? 667.0f : screenHeight;
        screenHeight = IS_IPHONE_6_P ? 736.0f : screenHeight;
    }
    return self;
}

Everything became normal in height, but I can’t figure out how to fix the width at all
. There is no time to rewrite the entire program for normal tabs (

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question