XCode 6.0.1 ios 7 Autolayout - ios7

I have found that applications built in XCode 6 for ios 7 have different behavior from same apps built for ios 8. There is something wrong with autolayout constraints. For example some bottom and trailing spaces won't work if I build app in XCode 6 for ios 7 both in sumulator or device, but apps correctly work if i build them in XCode 6 for ios 8 or in XCode 5 for ios 7. So i think there are some troubles for ios 7 when you build with XCode 6. If anyone has the same issue and how can it be resolved?

In iOS 7, cells’ content views sized themselves via autoresizing
masks. In iOS 8, this was changed, cells stopped using the
autoresizing masks and started sizing the content view in
layoutSubviews. If a nib is encoded in iOS 8 and then decode it on iOS
7, you’ll have a content view without an autoresizing mask and no
other means by which to size itself. So if you ever change the frame
of the cell, the content view won’t follow.
Apps being deploying back to iOS 7 will have to work around this by
sizing the content view itself, adding autoresizing masks, or adding
constraints. I guess this means that it's not a bug in XCode 6, but an
incompatibility between the iOS 8 SDK and iOS 7 SDK, which will hit
you if you upgrade to Xcode 6, because it will automatically start
using the iOS 8 SDK.

Related

Adaptative layout iOS 8 and iOS 7

I've to develop an app that should work on iOS 7 and iOS 8 devices. I'm using Xcode 6 to develop it and I'm having issue to design the UI. I designed the UI by using the adaptive layout, so when I try to run the app on a device in which it's installed iOS 8 it works great on all display dimension (iPhone 4s, iPhone 5, 5c, 5s and iPhone 6, 6 Plus) as you can see on the following screenshot:
When I try to run it on a device in which it's installed iOS 7 I get some trouble as you can see on the following screenshot:
How I can fix that issue? I need to design another Storyboard that the system should use if it detect iOS 7? I hope you can help me

App runs on iOS7 simulator, but changing simulator to iOS8 it doesn't recognize CoreData store

I have an iPad app, XCode 6, iOS 7, Storyboards and ARC. If I change the target to 7.x, the app works fine on the simulator running 7.0.
However, if I change the simulator to 8.0, the app doesn't recognize the CoreData store created when running under 7.x (the store is still there, just not found when running on the 8.0 simulator.) Also, none of the objects (UIButtons, UITextboxes, etc) show up either!
I don't have iOS 8 installed on my iPad (afraid stuff like this will affect my users), but the question is: just because something doesn't run on the simulator v8.0, does that mean that setting the lowest target to iOS 7, it won't run on the device if it is running iOS 8?
The iOS 7 simulator is on a separate (virtual) machine from the iOS 8 simulator. So any data you created one of these machines, will not be found on the other.

how can ipad with IOS 7.0.4 work on Xcode 4.6 - or restore from IOS 7 to IOS 6.1.3

I develop on ipad IOS 6.1.3 on XCode 4.6.
By mistake, ipad was updated to IOS 7.0.4.
So, How can I make iPad with IOS 7.0.4 works on Xcode 4.6 ?
Or, How can I restore iPad from IOS 7 to IOS 6.1.3 ?
My Mac os is 10.7.5
I can't complete my work..
Thank you
Very soon Apple will stop accepting apps that are built using Xcode 4.6, so you'll want to work on your app using Xcode 5, unless you don't plan on releasing your app.
As for downgrading your iPad, I don't think that's possible any longer. It used to be possible to downgrade from iOS 7 beta versions to iOS 6, but I think once iOS 7 was officially released that it is no longer possible.
My suggestion would be to upgrade your Mac OS version so you can install Xcode 5, and continue development. If you want users to use your app, they'll want it to be built with Xcode 5 so that it has the new iOS look anyway. After using iOS 7 for a while, apps that have the iOS 6 look still seem very dated.

XCode 5 and iOS 6 and 7

I'm working on an iOS app that I wrote with Xcode 4.6 and iOS 6.x. Now that XCode 5 has been released alongside with iOS 7, I wanted to support both iOS 6.x and iOS 7.x by using either XCode 4.6 or XCode 5. What is the best way to approach this?. Can I just toggle between iOS 6.x SDK and iOS 7.x SDK from within XCode 4.6 or do I have to upgrade to XCode 5 to accomplish this?.
Please advise.
XCode 4.6 will not support iOS 7 by any means. You will only be able to build iOS 6 apps that will run on iOS 7, but you will not be able to use new iOS 7 SDS features.
If you want to support iOS 7 features, you need to use Xcode 5. This might also cause some visual issues in your app.
My suggestion is to migrate to Xcode 5 and then check that everything is ok in your app, or do the required changes so that it works fine on iOS 7.
In any case, you can safely go back to Xcode 4 from Xcode 5, if you see that anything does not work out as expected.

iOS 5 Screen size without using default-568#2x.png

I am using iOS 6, and have set the deployment target as 5.0. But Appstore does not allow default-568#2x.png with iOS version lower than 6. Is there any way to handle the screen size of 4 inch screen without using default image?
To be able to start with the 4inch size on the iPhone 5 you have to add a Default-568#2x.png splash screen and compile with the iOS 6 SDK.
Of course you can still use you deployment target to 5.0+ while you are building your app with the iOS 6 SDK as base SDK (the deployment target and the base SDK are 2 different things, with the iOS 6 SDK you can target iOS 4.3+)
If you add a iPhone 5 splash screen and you're using the iOS 5 SDK as base SDK, you app will be rejected.
A short tips: try to create a new project with the latest Xcode version and you will find a basic Default-568#2x.png black splash screen which will allow you to start on the iPhone 5 screen size without artwork.