0

I am finding that Xcode 6.0.1 is messing up my code and output on simulator and iphone

Xcode 6 is making my landscape games look like crap on the simulator and phone (iOS 8).
When I run it on simulator for iOS 7 it works fine. Does not run still not on iPhone 5 iOS 8. Runs fine on iOS 7 iPhone 4 iOS 7

Therefore the issue is not the code, but Xcode or IOS or some combination.

Help me, thanks in advance

Here is a image on Xcode 6.0.1 with iOS 8

enter image description here

Here is a image on Xcode 5.1.1 with iOS 7

enter image description here

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
  • Check this out: http://stackoverflow.com/questions/25987244/autolayout-problems-with-ios8-with-code-that-works-fine-on-ios7 – Gallymon Oct 11 '14 at 02:33

1 Answers1

0

I had the same problem but then noticed the width and height were swapped around for ios8 so now my initwithframe looks like this

- (id)initWithFrame:(CGRect)frameOrg
{
    CGRect frame = frameOrg;

    isIOS8= ( frameOrg.size.width > frameOrg.size.height);

    if (yes && isIOS8)
    {
        frame.size.width = frameOrg.size.height;
        frame.size.height=frameOrg.size.width; 
    }

    self = [super initWithFrame:frame];
    ...
    ...
    ...
}

I needed to delete the apps from all devices that it was installed on and clean all the projects (including deleting from the simulator) occasionally still runs in rotten apple mode but haven't found a way around that yet. About 95% of time runs in apple goodness mode. Seems to be something to do with the compile as when it switches to rotten apple mode it consistently mucks up everytime I run until I clean and recompile. Likewise everytime I get a good compile I can run that as many times as I like without if mucking up. So I think its an xcode 6 issue myself :( hope this helps.

Ps the game looks Cooool.

Just looked at your screen shots more closely. As well as the above , have you checked your iPad and iPhone settings are both set to landscape AND your not running the iPhone app on the iPad. Im just looking at the change in scale between your background and your icons. It looks a bit like another iOS8 problem I had when I accidentally ran the iPhone version on the iPad sim. UnClick "Universal" and try specifically setting and running the iPad version!

linusthe3rd
  • 3,455
  • 3
  • 28
  • 43