简体   繁体   中英

Xcode 6.0.1 & iOS 8 is messing up my code and output on simulator and iphone

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

在此处输入图片说明

Here is a image on Xcode 5.1.1 with iOS 7

在此处输入图片说明

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM