I am working on a project based on iOS5. I want to use AFNetworking 2.0 by cocoapods. But 'iOS6+' is needed. Can I use AFNetworking 1.x when it's iOS5 while using 2.0 when it's iOS6+ ?
thanks
There's no way to use AFNetworking 2.0 with iOS 5
source: https://github.com/AFNetworking/AFNetworking#requirements
Its not worth targeting iOS 5 anymore. I don't even target iOS 6 anymore. There's just too much compatibility code you have to write to get it working nicely.
Cocoapods does not support it directly and it is not recommended.
Check Link.
Related
I have a project and use a lot of indexPathsForVisibleRows. Our project support iOS 8.0+ users. We migrate from Xcode7 to Xcode8 recently and find that Xcode 8 just support indexPathsForVisibleRows for only iOS9.0+ which doesn't work on iOS8. That is a disaster. Could anyone can help me?
For Objective-C and Swift 2.3 & under, the indexPathsForVisibleRows property is still marked as working from iOS 2.0 (a.k.a. the beginning) & onwards.
If you're using Swift 3 (which comes with Xcode 8), then you'll be limited to iOS 9 & newer (as the documentation states here).
If this were my problem I would probably choose to write some kind of helper function / class method in Objective-C via a bridging header solely for this issue.
So Swift 2.0 is coming up with Xcode 7, what is the minimum iOS / OS X system version required to use Swift 2.0?
An Apple staffer had this to say:
iOS 7 / OS X 10.9, same as Swift 1.0.
Update: I'm guessing this is because the runtime is packaged into the built app / library / framework / whatever the same as with Swift 1.x.
I've tested it as far a iOS 7, no clue on anything lower however you probably shouldn't be supporting iOS 6 anymore.
I couldn't find an official response anywhere, but they implied that Swift 2.0 will deploy back to iOS 7 in a couple of WWDC 2015 presentations.
Session 403: Improving Your Existing Apps with Swift (http://asciiwwdc.com/2015/sessions/403), where they mention the availability feature in Swift 2.0:
Because they all want you to support these old versions, iOS 7, 8, and now 9 is probably going to be on slate for this fall for many of you.
So to do that, we have this new availability feature introduced in Swift 2.0.
So as long as you are writing some code in Swift 2.0, we have a great way to check to see what SDK you are on and if you can actually use this feature or not.
Session 411: Swift in Practice (http://asciiwwdc.com/2015/sessions/411), where they talk about the Swift 2.0 availability feature:
But if I slide all the way back to deploying to iOS 7, the compiler can see, just as we can read on this slide, that it's unsafe to use this method, request when in use authorization. And the compiler will tell you that this is just unsafe code. And it's an error. It will literally prevent you from building this code. And it will give you a nice safety check.
I am reading http://www.raywenderlich.com/1371/iad-tutorial-for-ios-how-to-integrate-iad-into-your-iphone-app and I see that I need to set ios4 base SDK. In Xcode 5 laters base SDK is 7.0. How to set that and other params?
That tutorial is nearly 4 years old. You definitely don't need to set iOS4 as base sdk. You should set base SDK as Latest iOS, and deployment target to the earliest iOS version you intend to support (I'd recommend iOS 7, but that's your call).
Currently I am developing ios apps in 4.3 . I have been using ASIHttprequest for my all Network activities. Now I want to use AFNetworking. My problem is that I can't get the AFNetworking classes for ios 4.3. some blogs given by google search says AFNetworking 0.10 is compatible for ios 4.3 but I can get 1.0 version only.
All I want to know is whether AFNetworking has version compatible for ios 4.3, If so direct me to the link
If you look at the GitHub account for AFNetworking. You should be able to find it. Switch the branch to the correct version (0.10.x) and you will be good.
Anyway, here is the link to the version directly: Version 0.10.x
AFNetworking is stored on Github.
You can get any commit from it's history, for example - you can select any of the tagged states for download from https://github.com/AFNetworking/AFNetworking/tags
My current xcode is Xcode 3.2.6. It has iOS4.3. Can I use XCode 3.2.6 with iOS5 sdk. Is iOS5 sdk available as a stand alone download
Nope, as far as I understand you would need to migrate to xcode 4 if you wish to work with iOS5