検索を試みましたが、より良いものを見つけることができません。上記のコードも試しましたが、私の理解を超えており、多くのエラーが発生しました。助けてください....
S3GetPreSignedURLRequest * request = [[S3GetPreSignedURLRequest alloc] init];
request.bucket = @"bucket";
request.key = @"key";
request.contentType = @"image/jpeg";
request.httpVerb = @"GET";
AmazonCredentials *credentials = [[AmazonCredentials alloc] initWithAccessKey:ACCESS_KEY_ID withSecretKey:SECRET_KEY];
request.credentials = credentials;
NSDateComponents *components = [[[NSDateComponents alloc] init] autorelease];
[components setHour:1];
NSDate * oneHourFromNow = [[NSCalendar currentCalendar] dateByAddingComponents:components toDate:[NSDate date] options:0];
request.expires = oneHourFromNow;
//get the presigned URL
//NSURL * url = [[Constants s3] getPreSignedURL: request];