Apple Quietly Snuck A Feature Into iOS 6 That Will Make A 4-Inch iPhone Possible

Apple Quietly Snuck A Feature Into iOS 6 That Will Make A 4-Inch iPhone Possible

While little was made about Auto layout at WWDC, it could play an important role with the next iPhone.

When the iPhone was first launched in 2007, it was designed to support one screen resolution, and nothing more. Later, with the launch of the iPad and the Retina display on the iPhone 4, Apple had to optimize its concrete user interface elements for larger, higher resolution displays. Today, we have not only a Retina display on the iPad, but a rumored 4-inch iPhone as well, likely debuting in the fall.

With all of these different screen resolutions to handle, Apple has stealthily implemented a feature into iOS 6, one which will allow developers to intelligently scale their apps to fit nearly any screen resolution.

Pushed in part by the recent wave of giant sized Android phones and mutant “phablets,” Apple is finally pushing for larger displays with increased resolution for its products. This is all fine and good, until you look at the job of the developers writing apps for these multiple screen resolutions.

One of the main reasons developers choose iOS over Android in terms of development is because Android tends to be fragmented, as a result of the hundreds of devices the operating system has to support.

Android developers often have to use dozens of devices for testing their apps on every screen resolution imaginable, from the smallest 320×480 displays, to the newer 1280×800 displays found of many recent Android tablets.

This kind of development process is a nightmare, and its a risk Apple isn’t willing to take with its developers. This is why starting with the iOS 6 SDK, Apple is implementing what it calls “Auto layout,” to prepare for the next generation iPhone.

Essentially, Auto layout performs exactly the same way as it does in OS X Lion, where the feature was first found. Developers provide a set of constraints for interface elements, and depending on the screen resolution, these elements can move around to fit where they need to be.

This essentially combines the best of both worlds. Interface elements in Android run on a similar system, allowing them to stretch to whatever resolution is required. That, combined with the way iOS handles universal binaries, which contain graphics and assets for multiple devices, creates a solution that it not only more pleasing to the developer, but more pleasing to the eye as well.

When Android phone apps are scaled up for tablets, they often end up looking like exactly what they are- stretched out phone apps. With Auto layout, Apple hopes to provide an easy solution for developers, while still keeping the fit and finish that iOS apps are sometimes known for. The neat thing about Auto layout is that it can be applied to much more than just a larger iPhone. Down the road, if Apple decided on a smaller iPad, or perhaps an insane double Retina display, Auto layout would take care of a lot of the work.

This kind of forward thinking is what Apple is known for, and is why no matter how much Google pushes Android, developers will always choose iOS first.

  • AdamFC

    What the hell are you talking about… retina display vs. regular display makes no difference with regard to layout. It’s the doubled-resolution that’s the issue there. And auto-layout doesn’t make a 4-inch iPhone any more or less possible.

  • TheKnightWhoSaysNi

    This is nice for the typical iPhone app that has a scrolling section with a header and a footer.
    For other types of app this won’t help.

  • Skittle Juice

    What? OpenGL ES was secretly coded in? When it does that on it’s own? You guys need to get into C++ more this isn’t anything new

  • raggedrebel

    i honestly am not sure why I still visit this site every day. The ignorance in at least 75% of posts is appalling for what COULD be decent site. But articles like this one make questions the writers intelligence.

  • rick_tap

    I have to agree with raggedrebel, this post is very unprofessional and unbalanced.

    One moment you say, that android is unpleasant for developers, because of it’s fragmentation, then you say, exactly the same thing is coming to iOS with the 4 inch iPhone (it’s STILL just a rumor btw) but because of “apples forward thinking” it’s not gonna effect the developers opinions. BUT here’s the biggest hit, you also say, that android is basically doing the exact same thing already.

    You disproved every single point of yours and still ended this post with the words:
    “This kind of forward thinking is what Apple is known for, and is why no matter how much Google pushes Android, developers will always choose iOS first.”

    I’m a big fan of apples products (not that much of apple as a company though), but it’s time to look at some other technology out there. It’s not like google is a third world developer, that had a lucky guess with it’s search engine and now just spends money on tech-garbage.

  • renssies

    This feature is new but isn’t for a 4 inch display, it’s just a upgrade for the struts and springs system. It’s already in Lion. But however there are some other new api’s which help with different sizes and resolutions which were also already on OS X (some even from te beginning)

  • fichek

    You should really get informed a bit when posting about stuff you don’t understand. This is utter nonsense.

  • Ed_Kel

    . . . . . .. . . . . . . . . . . ,.-‘”. . . . . . . . . .“~.,
    . . . . . . . .. . . . . .,.-”. . . . . . . . . . . . . . . . . .“-.,
    . . . . .. . . . . . ..,/. . . . . . . . . . . . . . . . . . . . . . . ”:,
    . . . . . . . .. .,?. . . . . . . . . . . . . . . . . . . . . . . . . . .\,
    . . . . . . . . . /. . . . . . . . . . . . . . . . . . . . . . . . . . . . ,}
    . . . . . . . . ./. . . . . . . . . . . . . . . . . . . . . . . . . . ,:`^`.}
    . . . . . . . ./. . . . . . . . . . . . . . . . . . . . . . . . . ,:”. . . ./
    . . . . . . .?. . . __. . . . . . . . . . . . . . . . . . . . :`. . . ./
    . . . . . . . /__.(. . .“~-,_. . . . . . . . . . . . . . ,:`. . . .. ./
    . . . . . . /(_. . ”~,_. . . ..“~,_. . . . . . . . . .,:`. . . . _/
    . . . .. .{.._$;_. . .”=,_. . . .“-,_. . . ,.-~-,}, .~”; /. .. .}
    . . .. . .((. . .*~_. . . .”=-._. . .“;,,./`. . /” . . . ./. .. ../
    . . . .. . .\`~,. . ..“~.,. . . . . . . . . ..`. . .}. . . . . . ../
    . . . . . .(. ..`=-,,. . . .`. . . . . . . . . . . ..(. . . ;_,,-”
    . . . . . ../.`~,. . ..`-.. . . . . . . . . . . . . . ..\. . /\
    . . . . . . \`~.*-,. . . . . . . . . . . . . . . . . ..|,./…..\,__
    ,,_. . . . . }.>-._\. . . . . . . . . . . . . . . . . .|. . . . . . ..`=~-,
    . .. `=~-,_\_. . . `\,. . . . . . . . . . . . . . . . .\
    . . . . . . . . . .`=~-,,.\,. . . . . . . . . . . . . . . .\
    . . . . . . . . . . . . . . . . `:,, . . . . . . . . . . . . . `\. . . . . . ..__
    . . . . . . . . . . . . . . . . . . .`=-,. . . . . . . . . .,%`>–==“
    . . . . . . . . . . . . . . . . . . . . _\. . . . . ._,-%. . . ..`

About the author

Michael SteeberMichael Steeber is a student who is obsessed with everything Apple. He enjoys making videos and runs the MSComputerVideos YouTube channel in his free time. You can follow him on Twitter as well.

(sorry, you need Javascript to see this e-mail address)| Read more posts by .

Posted in News | Tagged: , , , |