can in-app purchase display images?
i have set a function that retrive values for in-app purchase:
works well. i'm wondering if can i display the image i have uploaded other than validProduct.localizedTitle, validProduct.price
Code:
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response {
// Populate the inappBuy button with the received product info.
SKProduct *validProduct = nil;
int count = [response.products count];
for (int i=0; i<count; i++) {
validProduct = [response.products objectAtIndex:i];
NSString *rowText = [[NSString alloc] initWithFormat:@"%@ - Buy %@", validProduct.localizedTitle, validProduct.price];
}
if (count>0) {
validProduct = [response.products objectAtIndex:0];
}
if (!validProduct) {
[inappButton setTitle:@"No Products Available" forState:UIControlStateNormal];
inappButton.enabled = NO;
return;
}
NSString *buttonText = [[NSString alloc] initWithFormat:@"%@ - Buy %@", validProduct.localizedTitle, validProduct.price];
[inappButton setTitle:buttonText forState:UIControlStateNormal];
inappButton.enabled = YES;
[buttonText release];
}
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| inapp purchase server side | sefiroths | 0 | 1,963 |
Sep 28, 2012 08:47 AM Last Post: sefiroths |
|
| in-app purchase after rejected app, item with status="developer action needed" | sefiroths | 2 | 7,964 |
Jan 18, 2012 03:33 AM Last Post: sefiroths |
|

