Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What are some specific differences between iOS 5 and iOS 6, when it comes to app development?


The biggest by a long shot for me is UICollectionView. The open source drop-in replacement to get it working on sub iOS 6 is a fantastic effort, but it's not there yet (animation).


One thing that I find incredibly fast and easy to do on iOS6 vs. iOS5 is implementing post-to-Facebook (and Weibo) using the new Social Framework. In iOS5, you would have to

- Register your app on Facebook

- Integrate the FB SDK (or maybe a third-party wrapper)

- Implement various authentication/delegates/callbacks

- Test that you did all of these things correctly

This might not sound like a big deal but it does save some time.


Not that I disagree that iOS 5 was obsolete the second that iOS 6 was released (the numbers agree with us), but...

    if (NSClassFromString(@"UICollectionView")) // or something that makes a lot more sense, but that came to mind immediately
    {
        // facebook stuff
    }

    // Twitter.framework stuff


Uicollectionview was already mentioned, so I'll add autolayout to the list. Incredibly useful feature that gets rid of a lot of brittle code.


If you have an iOS developer account you can view the What's New document at https://developer.apple.com/library/ios/releasenotes/General...


Aside from UICollectionView and AutoLayout that were mentioned, there is much easier way to localize the app (one storyboard and many "strings" files, more ways to easily customize UI elements, and a few ARC things (no more manually managing dispatch queues, zeroing weak references, etc.)


and a few ARC things

According to this document [1]: ARC is fully supported in iOS 5, and there aren't any iOS-6-only Objective-C features.

http://developer.apple.com/library/ios/#releasenotes/Objecti...


There are a few iOS 6 ARC specific features. http://stackoverflow.com/questions/12730202/do-you-need-to-r...


Yeah. GCD queues are now Objective-C classes IIRC.


For this particular app, attributed strings are probably going to be the big thing.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: