Repository: cordova-ios
Updated Branches:
  refs/heads/master c0fe92d6c -> 29f10b475


CB-9638 - Cordova/NSData+Base64.h missing from cordova-ios - updated API 
Changes doc


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/29f10b47
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/29f10b47
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/29f10b47

Branch: refs/heads/master
Commit: 29f10b475414e84121e2e77f79095b6bccdc6b35
Parents: c0fe92d
Author: Shazron Abdullah <[email protected]>
Authored: Wed Oct 28 11:20:03 2015 -0700
Committer: Shazron Abdullah <[email protected]>
Committed: Wed Oct 28 11:20:03 2015 -0700

----------------------------------------------------------------------
 guides/API changes in 4.0.md | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/29f10b47/guides/API 
changes in 4.0.md
----------------------------------------------------------------------
diff --git a/guides/API changes in 4.0.md b/guides/API changes in 4.0.md
index 1d36410..4604d79 100644
--- a/guides/API changes in 4.0.md      
+++ b/guides/API changes in 4.0.md      
@@ -105,7 +105,13 @@ Methods:
     
 ### Upgrade Notes:
 
-Plugin authors are encouraged to use 
[NSJSONSerialization](https://developer.apple.com/library/ios/documentation/Foundation/Reference/NSJSONSerialization_Class/)
 instead.
+Plugin authors are encouraged to use the (iOS 7+) base64 encoding and decoding 
methods available in 
[MSData](https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/)
 instead.
+
+    // Decode a Base64 encoded string
+    NSData* data = [[NSData alloc] initWithBase64EncodedString:encodedString 
options:0]
+    
+    // Encode a string to Base64
+    NSString* encodedString = [data base64EncodedStringWithOptions:0];
 
 ## CDVAppDelegate.h
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to