iDevGames Forums
can in-app purchase display images? - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: can in-app purchase display images? (/thread-9263.html)



can in-app purchase display images? - sefiroths - Aug 14, 2011 11:11 AM

i have set a function that retrive values for in-app purchase:
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];
}
works well. i'm wondering if can i display the image i have uploaded other than validProduct.localizedTitle, validProduct.price