Whats new in iOS5

1,677
-1

Published on

iOS 5 is the latest in a great line of software updates for the Apple mobile devices. Beside the highly expected interface updates (new Notification Center, controls, etc.), lots of low level changes are taking place.

Paul was talking about the new Automatic Reference Counting (ARC) for memory management, iCloud storage, Twitter integration, storyboards, Newsstand apps, location simulation, airplay mirroring (iPad 2 only) as well as the new default apps and changes to existing ones.

Published in: Technology
1 Comment
2 Likes
Statistics
Notes
  • iOS6 is there on way
    www.slideshare.net/SojoSolutions/features-ofios6
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
1,677
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
79
Comments
1
Likes
2
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Whats new in iOS5

    1. 1. What’s new in iOS5Paul ArdeleanuGeek in Chief at Hello24hello24.com
    2. 2. hello24.com SkillsMatter - Nov 2011
    3. 3. What’s new in iOS5 iCloud ARC Storyboarding Newsstand Twitter integration UIKit additions/changes Xcode 4 Sirihello24.com SkillsMatter - Nov 2011
    4. 4. iCloudhello24.com SkillsMatter - Nov 2011
    5. 5. iCloud storage in the cloud documents value-key datahello24.com SkillsMatter - Nov 2011
    6. 6. iCloud Opt-in backup Space is limited what’s backed up: Documents Library (partially) It just works happens either iCloud or iTunes backuphello24.com SkillsMatter - Nov 2011
    7. 7. iCloud Opt-in backuphello24.com SkillsMatter - Nov 2011
    8. 8. iCloud Storing Key-Value Data NSUbiquitousKeyValueStore similar with NSUserDefaults but not a replacementshello24.com SkillsMatter - Nov 2011
    9. 9. iCloud Storing Key-Value Datahello24.com SkillsMatter - Nov 2011
    10. 10. iCloud Storing Key-Value Datahello24.com SkillsMatter - Nov 2011
    11. 11. iCloud Storing Key-Value Data NSUbiquitousKeyValueStore *store = [NSUbiquitousKeyValueStore defaultStore]; [store setString:@"Skills Matter" forKey:@"venue"]; [store synchronize];hello24.com SkillsMatter - Nov 2011
    12. 12. iCloud Storing Key-Value Data NSUbiquitousKeyValueStore *store = [NSUbiquitousKeyValueStore defaultStore]; [store setString:@"Skills Matter" forKey:@"venue"]; [store synchronize]; NSUbiquitousKeyValueStore *store = [NSUbiquitousKeyValueStore defaultStore]; NSLog(@"venue: %@", [store stringForKey:@"venue"]);hello24.com SkillsMatter - Nov 2011
    13. 13. iCloud Storing Key-Value Data bool, double, long long NSString, NSData collections: NSArray, NSDictionary NSNumber, NSDatehello24.com SkillsMatter - Nov 2011
    14. 14. iCloud Storing Key-Value Data bool, double, long long NSString, NSData collections: NSArray, NSDictionary NSNumber, NSDate key: 64B value: 4KBhello24.com SkillsMatter - Nov 2011
    15. 15. iCloud Storing Key-Value Data don’t save lots of data NSUserDefaults in the cloud - (NSDictionary *)dictionaryRepresentation - (void)removeObjectForKey:(NSString *)aKeyhello24.com SkillsMatter - Nov 2011
    16. 16. iCloud Storing Key-Value Data NSUbiquitousKeyValueStoreDidChangeExternallyNotification register for notification syncronizehello24.com SkillsMatter - Nov 2011
    17. 17. iCloud Storing documents each application has its own sandbox folders can be created inside the dedicated area create a Documents folder use to manage only critical datahello24.com SkillsMatter - Nov 2011
    18. 18. iCloud Storing documentshello24.com SkillsMatter - Nov 2011
    19. 19. iCloud Storing documentshello24.com SkillsMatter - Nov 2011
    20. 20. iCloud Storing documents Check if iCloud storage is available: - (NSURL *)URLForUbiquityContainerIdentifier:(NSString *)containerID NSFilePresenter protocol NSFileCoordinator class create NSURL for the file - (BOOL)setUbiquitous:(BOOL)flag itemAtURL:(NSURL *)url destinationURL:(NSURL *)destinationURL error:(NSError **)errorOut - (BOOL)startDownloadingUbiquitousItemAtURL:(NSURL *)url error:(NSError **)errorOuthello24.com SkillsMatter - Nov 2011
    21. 21. iCloud Resources iCloud for Developers developer.apple.com/icloud/ WWDC11 sessions: 501: iCloud Storage Overview 116: Storing Documents with iCloud using iOS5hello24.com SkillsMatter - Nov 2011
    22. 22. ARC (Automatic Reference Counting)hello24.com SkillsMatter - Nov 2011
    23. 23. Memory management techniques Manual retain-release Automatic Refence Counting Garbage collectionhello24.com SkillsMatter - Nov 2011
    24. 24. Manual reference counting Vehicle *myCar = [[Vehicle alloc] init]; [myCar retain]; [myCar release]; [myCar release]; +1 -1 + alloc - release + new - autorelease - copy - retainhello24.com SkillsMatter - Nov 2011
    25. 25. ARC works at compiler level evaluates objects’ lifetime automatically does memory management for you same rules iOS5 & OS X Lion (XCode 4.2)hello24.com SkillsMatter - Nov 2011
    26. 26. ARChello24.com SkillsMatter - Nov 2011
    27. 27. ARC Limitations cannot explicitly invoke retain, release / autorelease dealloc can’t store objects in C structure can’t cast between object and non-object typeshello24.com SkillsMatter - Nov 2011
    28. 28. ARC Things to consider ARC can be intermixed with non-ARC still need to understand memory management will cause rejectionshello24.com SkillsMatter - Nov 2011
    29. 29. ARC !!! while([aVar retainCount]) { [aVar release]; }hello24.com SkillsMatter - Nov 2011
    30. 30. ARC Variable qualifiers __strong (default) __weak __unsafe_unretained __autoreleasinghello24.com SkillsMatter - Nov 2011
    31. 31. ARC Variable qualifiers NSString __strong *hello = [[NSString alloc] initWithFormat: @"hello %@", person.name]; NSLog(@"hello: %@", hello); NSString __weak *hello = [[NSString alloc] initWithFormat: @"hello %@", person.name]; NSLog(@"hello: %@", hello);hello24.com SkillsMatter - Nov 2011
    32. 32. ARC - (NSString *)aMethod { NSString *rtn = [[NSString alloc] initWithFormat: @"hello %@", self.name]; return rtn; }hello24.com SkillsMatter - Nov 2011
    33. 33. ARCObject lifetime qualifiers retai n @property(strong) MyClass *myObject; @property(weak) MyOtherClass *delegate; assig nhello24.com SkillsMatter - Nov 2011
    34. 34. ARC @autorelease instead of NSAutoreleasePool int main(int argc, char *argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([HGAppDelegate class])); } } int main(int argc, char *argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; int retVal = UIApplicationMain(argc, argv, nil, nil); [pool release]; return retVal; }hello24.com SkillsMatter - Nov 2011
    35. 35. ARC LLVM & Clang Low Level Virtual Machine - compiler infrastructure written in C++ language agnostic Clang - compiler front-end for C, C++, Objective-C, Objective-C++hello24.com SkillsMatter - Nov 2011
    36. 36. ARC LLVM & Clang shorter compilation times than GCC creates code that runs faster incremental compilation tighter integration with the IDE GUIhello24.com SkillsMatter - Nov 2011
    37. 37. ARC How tohello24.com SkillsMatter - Nov 2011
    38. 38. ARC How to -fobjc-archello24.com SkillsMatter - Nov 2011
    39. 39. ARC How tohello24.com SkillsMatter - Nov 2011
    40. 40. ARC How tohello24.com SkillsMatter - Nov 2011
    41. 41. ARC Resources WWDC11 session: 323: Introducing Automatic Reference Countinghello24.com SkillsMatter - Nov 2011
    42. 42. Storyboardinghello24.com SkillsMatter - Nov 2011
    43. 43. Storyboardinghello24.com SkillsMatter - Nov 2011
    44. 44. Storyboarding Scene Sequehello24.com SkillsMatter - Nov 2011
    45. 45. Storyboardinghello24.com SkillsMatter - Nov 2011
    46. 46. Storyboardinghello24.com SkillsMatter - Nov 2011
    47. 47. Storyboardinghello24.com SkillsMatter - Nov 2011
    48. 48. hello24.com SkillsMatter - Nov 2011
    49. 49. hello24.com SkillsMatter - Nov 2011
    50. 50. hello24.com SkillsMatter - Nov 2011
    51. 51. Storyboarding http://www.raywenderlich.com/5138/ beginning-storyboards-in-ios-5-hello24.com SkillsMatter - Nov 2011 part-1
    52. 52. hello24.com SkillsMatter - Nov 2011
    53. 53. Storyboarding Resources WWDC11 sessions: 309: Introduction to Storyboarding 302: Using Interface Builder in Xcode 4hello24.com SkillsMatter - Nov 2011
    54. 54. Newsstandhello24.com SkillsMatter - Nov 2011
    55. 55. Newsstand magazines & newspapers period content update auto-renewal subscriptions & single issueshello24.com SkillsMatter - Nov 2011
    56. 56. Newsstand App settings UINewsstandApphello24.com SkillsMatter - Nov 2011
    57. 57. Newsstand Iconhello24.com SkillsMatter - Nov 2011
    58. 58. Newsstand Icon 90px UINewsstandIcon 90px Binding type: Binding edge: ‣ Magazine ‣ Left ‣ Newspapaper ‣ Right ‣ Bottomhello24.com SkillsMatter - Nov 2011
    59. 59. Newsstand Icon 90px UINewsstandIcon 90px Binding type: Binding edge: ‣ Magazine ‣ Left ‣ Newspapaper ‣ Right ‣ Bottomhello24.com SkillsMatter - Nov 2011
    60. 60. Things to Newsstand consider only one download in 24 hours period push notification content-available=1 size matters user is controlhello24.com SkillsMatter - Nov 2011
    61. 61. Newsstand How it workshello24.com SkillsMatter - Nov 2011
    62. 62. Newsstand How it works remote notification received (content-available=1)hello24.com SkillsMatter - Nov 2011
    63. 63. Newsstand How it works remote notification received (content-available=1) app is woken uphello24.com SkillsMatter - Nov 2011
    64. 64. Newsstand How it works remote notification received (content-available=1) app is woken up content download initiatedhello24.com SkillsMatter - Nov 2011
    65. 65. Newsstand How it works remote notification received (content-available=1) app is woken up content download initiated app goes to sleephello24.com SkillsMatter - Nov 2011
    66. 66. Newsstand How it works remote notification received (content-available=1) app is woken up content download initiated app goes to sleep download finishes - content is stored in a Newsstand managed directoryhello24.com SkillsMatter - Nov 2011
    67. 67. Newsstand How it works remote notification received (content-available=1) app is woken up content download initiated app goes to sleep download finishes - content is stored in a Newsstand managed directory app is woken up & notified the download is donehello24.com SkillsMatter - Nov 2011
    68. 68. Newsstand How it works remote notification received (content-available=1) app is woken up content download initiated app goes to sleep download finishes - content is stored in a Newsstand managed directory app is woken up & notified the download is done app goes back to sleephello24.com SkillsMatter - Nov 2011
    69. 69. Newsstand Classeshello24.com SkillsMatter - Nov 2011
    70. 70. Newsstand Classes NKLibrary NKIssue NKAssetDownloadhello24.com SkillsMatter - Nov 2011
    71. 71. Newsstand Classes NKLibrary NKIssue NKAssetDownload NSURLConnection (NKAssetDownloadAdditions)hello24.com SkillsMatter - Nov 2011
    72. 72. Newsstand NKLibrary + (NKLibrary *)sharedLibrary; NSArray *issues NKIssue *currentlyReadingIssue - (NKIssue *)addIssueWithName:(NSString *)name date:(NSDate *)date; - (void)removeIssue:(NKIssue *)issue;hello24.com SkillsMatter - Nov 2011
    73. 73. Newsstand NKIssue name date status NKIssueContentStatusNone, NKIssueContentStatusDownloading, NKIssueContentStatusAvailable contentURL downloadingAssetshello24.com SkillsMatter - Nov 2011
    74. 74. Newsstand NKAssetDownload issue identifier URLRequesthello24.com SkillsMatter - Nov 2011
    75. 75. Newsstand NKAssetDownload issue identifier URLRequest - (NSURLConnection *)downloadWithDelegate: (id <NSURLConnectionDownloadDelegate>)delegate;hello24.com SkillsMatter - Nov 2011
    76. 76. Newsstand Notifications- (void)connectionDidFinishDownloading:(NSURLConnection *)connection destinationURL:(NSURL *)destinationURLhello24.com SkillsMatter - Nov 2011
    77. 77. Newsstand Update the icon [UIApplication setNewsstandIconImage:(UIImage*)newImage]hello24.com SkillsMatter - Nov 2011
    78. 78. Newsstand Resources WWDC11 session: 504: Building Newsstand Appshello24.com SkillsMatter - Nov 2011
    79. 79. Twitter integrationhello24.com SkillsMatter - Nov 2011
    80. 80. Twitter Frameworkhello24.com SkillsMatter - Nov 2011
    81. 81. Twitter Classes TWRequest TWTweetComposeViewControllerhello24.com SkillsMatter - Nov 2011
    82. 82. Twitter Integration TWTweetComposeViewController *tweetSheet = [[TWTweetComposeViewController alloc] init]; [self presentModalViewController:tweetSheet animated:YES];hello24.com SkillsMatter - Nov 2011
    83. 83. Twitter Integrationhello24.com SkillsMatter - Nov 2011
    84. 84. Accounts Framework access to built-in accounts ACAccount ACAccountType identifier ACAccountTypeIdentifierTwitterhello24.com SkillsMatter - Nov 2011
    85. 85. Twitter Resources WWDC11 session: 124: Twitter integrationhello24.com SkillsMatter - Nov 2011
    86. 86. New UIKit Controlshello24.com SkillsMatter - Nov 2011
    87. 87. UIKit UIStepperhello24.com SkillsMatter - Nov 2011
    88. 88. UIKit UIAlertViewStylehello24.com SkillsMatter - Nov 2011
    89. 89. UIKit UIAlertViewStylehello24.com SkillsMatter - Nov 2011
    90. 90. UIKit UIAlertViewStyle typedef enum { UIAlertViewStyleDefault = 0, UIAlertViewStyleSecureTextInput, UIAlertViewStylePlainTextInput, UIAlertViewStyleLoginAndPasswordInput } UIAlertViewStyle;hello24.com SkillsMatter - Nov 2011
    91. 91. UIKit UIScreen Overscan compensation typedef enum { UIScreenOverscanCompensationScale, UIScreenOverscanCompensationInsetBounds, UIScreenOverscanCompensationInsetApplicationFrame, } UIScreenOverscanCompensation;hello24.com SkillsMatter - Nov 2011
    92. 92. UIKit UIScreen Screen brightness - software dimming UIScreen *screen = [UIScreen mainScreen]; screen.wantsSoftwareDimming = YES; screen.brightness = 0.2;hello24.com SkillsMatter - Nov 2011
    93. 93. UIKit Dictionary UIReferenceLibraryViewController + (BOOL)dictionaryHasDefinitionForTerm:(NSString *)term - (id)initWithTerm:(NSString *)termhello24.com SkillsMatter - Nov 2011
    94. 94. UIKit UIPageViewControllerhello24.com SkillsMatter - Nov 2011
    95. 95. UIKit UIPageViewControllerhello24.com SkillsMatter - Nov 2011
    96. 96. UIKit Appearance proxy UIAppearance protocol [[UINavigationBar appearance] setTintColor:myColor]; [[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil] setTintColor:myNavBarColor]; [[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], [UIPopoverController class], nil] setTintColor:myPopoverNavBarColor];hello24.com SkillsMatter - Nov 2011
    97. 97. UIKit Other additions... new Notification System Built-in Face Recognition NSLinguisticTagger CLGeocoder NSIncrementalStore NSFileVersion NSJSONSerializationhello24.com SkillsMatter - Nov 2011
    98. 98. UIKit Resources WWDC11 session: 100: What’s new in Cocoa Touchhello24.com SkillsMatter - Nov 2011
    99. 99. Xcode 4hello24.com SkillsMatter - Nov 2011
    100. 100. hello24.com SkillsMatter - Nov 2011
    101. 101. hello24.com SkillsMatter - Nov 2011
    102. 102. hello24.com SkillsMatter - Nov 2011
    103. 103. hello24.com SkillsMatter - Nov 2011
    104. 104. hello24.com SkillsMatter - Nov 2011
    105. 105. hello24.com SkillsMatter - Nov 2011
    106. 106. Xcode4 Resources WWDC11 sessions: 302: Using Interface Builder in Xcode 4 306: Maximizing Productivity in Xcode 4 311: Mastering Source Control in Xcode 4 313: Mastering Schemes in Xcode 4 317: Device Management and App Submission with Xcode 4 319: Effective Debugging with Xcode 4hello24.com SkillsMatter - Nov 2011
    107. 107. Sirihello24.com SkillsMatter - Nov 2011
    108. 108. hello24.com SkillsMatter - Nov 2011
    109. 109. Sirihello24.com SkillsMatter - Nov 2011
    110. 110. hello24.com SkillsMatter - Nov 2011
    111. 111. hello24.com SkillsMatter - Nov 2011
    112. 112. hello24.com SkillsMatter - Nov 2011
    113. 113. hello24.com SkillsMatter - Nov 2011
    114. 114. Thank you!hello24.com SkillsMatter - Nov 2011
    115. 115. Thank you! stay hungry, stay foolishhello24.com SkillsMatter - Nov 2011
    116. 116. Thank you! stay hungry, stay foolishhello24.com paul@hello24.com SkillsMatter - Nov 2011

    ×