iOS SDK Refresh

localeverywhere

We took your input, with just a bit of our own work sprinkled in for good measure, and updated the iOS library.  All of the updates compile and translate into easier and faster development for your iOS apps.  

What’s New?

There are upgrades across the board to make development and deployment faster.   However, the three major changes that stand out are:

  1. Run server-side code from any operation in the library.  All operations can now access result data from server-side code snippets, as well as any metadata returned in the API call response.  This gives you the power to use the power of server-side processing or plug in other services.  What we’re saying is - build whatever you want.
  2. Upload files without keys.  Even though we love gossip, there’s no need to tell us all the details.  Uploading a file without a key will automatically create one for it once it’s on our servers.
  3. Sort object query results.   Sometimes the natural order isn’t what you want.  Object queries can now be sorted by any field on the object, in ascending or descending order.  

Backwards Compatibility

You will need to change the way callbacks are handled by your apps after upgrading to the new library.  Once this change is made, however, all future versions of the library will be completely backwards compatible.  The example below outlines the change.

Previously each callback would be passed parameters explicitly, like so:

Now, each callback takes just one object that contains all the properties you may need: 

Handling callbacks in this way allows us to add new attributes to our responses without breaking your code in the future.  We’re sorry for the trouble in the mean time!

Get Building

Take a gander at the video for a quick intro on how to get started developing with the new library.  The iOS documentation in our Developer Zone is also a great place to fully familiarize yourself with the library and all of the changes. 

As always, feel free to email or tweet to us if there’s anything we can help with.

twitter.com/cloudmine



About Us