D
D
deleted-mezhevikin2013-06-20 14:26:10
Objective-C
deleted-mezhevikin, 2013-06-20 14:26:10

Problem with autoloyaout in ios7?

When trying to create a project with one UIViewController / UINavigationController, the following problem occurred:
If you specify a target from ios5 in the project and disable autoloyaout (because it works since ios6) in the interface builder, then an exception is thrown after launch:

-[NSKeyedUnarchiver decodeInt32ForKey:]: value for key (UIKeyAutomaticallyAdjustsScrollViewInsets) is not an integer number'

Did a search on the official apple developer forum.
I found similar questions, and two solutions to the problem that do not suit me.
1. Make two identical storyboards, one with autoloyaout enabled and the other disabled, and upload one for ios5, the other for ios 6-7.
2. Refuse support for ios5, and make a minimal target for ios6.
What do you think about this?
How will you solve this problem in your projects?
www.dropbox.com/s/txw2wwrqogs4tb1/MyUI.zip - Xcode 5 beta test project code
, sdk 7.0

Answer the question

In order to leave comments, you need to log in

5 answer(s)
D
deleted-mezhevikin, 2013-06-21
@deleted-mezhevikin

Thanks everyone for the replies.
The problem is as expected LIAL in xcode 5.
It creates the wrong project.
If you create a project in xcode4 and then open it in xcode5, then everything is ok.
These are the crutches.

L
LIAL, 2013-06-21
@LIAL

I don't think you should bother with iOS5.
According to statistics, the share of people sitting on iOS versions below 6.0 for iPhone is less than 6% ( Proof ) - so you can use autolayout. if all the same these 6% are important, then you can use the old and not very good struts & springs

M
Maxim Timokhin, 2013-06-20
@timokhin

If there is a loyal audience sitting on old devices, then it would be reasonable to ensure compatibility, even if you have to duplicate storyboards. For new projects - depends on the specifics of the project, the question is individual.

A
Alexey Storozhev, 2013-12-24
@storoj

I think you can open the storyboard in a text editor, find entries there
and try to change YES/ NOto 1/0, since it expects a number there,
or completely remove this parameter

A
Alexey Storozhev, 2013-12-24
@storoj

what demo are you looking at in ECSlidingViewController? Theoretically, TransitionFun should probably work, but BasicMenu should crash

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question