1

Had such an issue:

There are 2 storyboards in my project - for ipad and for iphone. Deployment target is set to iOS 5. When I try to run it on iOS7 using iPad-Simulator app crashes with message -

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

The strange thing is that iPhone simulator runs well.

Storyboard settings are set to:

1)Opens in XCode5

2)Builds for Project DT

3)Views as iOS 7 and later.

4)XCode 5 dp4.

3
  • because the insets are not integers indeed, the insets are structs. therefore the error message is correct. more info of the insets are here: developer.apple.com/library/ios/#documentation/uikit/reference/…
    – holex
    Jul 31, 2013 at 6:09
  • yes,I know this. The question is - why these insets are understood as ints by xcode and how to fix it.
    – alex
    Jul 31, 2013 at 6:13
  • 1
    This question appears to be off-topic because it is about software that is not finalized yet, meaning any answers would be meaningless once the final product is released.
    – borrrden
    Jul 31, 2013 at 6:45

1 Answer 1

4

In your storyboard select your view / navigation controller and for view controller layout make sure Adjust Scroll View Insets is checked.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.