Download
Download the AWS SDK for iOS 0.2.2
New Features
| Change | Description |
|---|---|
| New Sample Code |
The awsBrowser (AWSiOSDemo) now contains demos for making Async requests. The code to make the Async request works the same for all services but only requests to S3 and SimpleDB are shown.
Async requests require the use of a delegate that implements the AmazonServiceRequestDelegate protocol. In the sample application, the request delegates are named: S3RequestDelegate and SdbRequestDelegate.
S3RequestDelegate s3Delegate = [[S3RequestDelegate alloc] init];
AmazonS3Client *s3 = [[AmazonS3Client alloc] initWithAccessKey:@"Access Key Here" withSecretKey:@"Secret Key Here"];
S3CreateBucketRequest *cbr = [[[S3CreateBucketRequest alloc] initWithName:@"Your Bucket Name Here"] autorelease];
[cbr setDelegate:s3Delegate];
[s3 createBucket:cbr]; // Statement returns nil immediately.
SdbRequestDelegate sdb = [[SdbRequestDelegate alloc] init];
AmazonSimpleDBClient *sdbClient = [[AmazonSimpleDBClient alloc] init];
SimpleDBSelectRequest *selectRequest = [[[SimpleDBSelectRequest alloc] initWithSelectExpression:selectExpression] autorelease];
[selectRequest setDelegate:sdbDelegate];
[sdb select:selectRequest]; // Statement returns nil immediately.
As the request is processed various methods on the delegate will be invoked.
|
Resolved Issues
| Bug | Description & Resolution |
|---|---|
| Asynchronous Requests | Async requests now properly do not block in the main Run Loop. Responses to requests are sent to the assigned delegate. |
| Logging | The iOS SDK now enables explicit control for logging. By default logging is turned off, to enable full logging include the following in your code:
#import <AWSiOSSDK/AmazonLogger.h>
.
.
.
[AmazonLogger verboseLogging]
|
Supported API Versions
This release of the SDK supports the following API versions:
| Service | API Version |
|---|---|
| Amazon CloudWatch | 2009-05-15 |
| Amazon Elastic Compute Cloud (EC2) | 2011-02-28 |
| Amazon Simple Email Service (SES) | 2010-12-01 |
| Amazon Simple Notification Service (SNS) | 2010-03-31 |
| Amazon Simple Queue Service | 2009-02-01 |
| Amazon Simple Storage Service (S3) | 2006-03-01 |
| Amazon SimpleDB | 2009-04-15 |
| Auto Scaling | 2010-08-01 |
| Elastic Load Balancing | 2010-07-01 |
Known Issues
| Issue | Description |
|---|---|
| Amazon S3 over 3G | Uploading large objects to Amazon S3 using 3G can fail frequently. Upgrading your iOS device to v4.3 helps reduce the failure rate. We are actively working with Apple to find a resolution to this problem. |
| Amazon S3 client does not work around known Amazon S3 issues. | The Amazon S3 library does not currently work around two known issues with the Amazon S3 API:
|