Created
April 26, 2013 07:44
-
-
Save MaximKeegan/5465583 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RIButtonItem *cancelItem = [RIButtonItem item]; | |
cancelItem.label = NSLocalizedString(@"Cancel",@"Cancel"); | |
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Subscribe", @"Subscribe") | |
message:nil | |
cancelButtonItem:cancelItem | |
otherButtonItems:nil]; | |
for (DPSProduct *dpsProduct in productsSet) { | |
RIButtonItem *purchaseItem = [RIButtonItem item]; | |
purchaseItem.label = [[dpsProduct product] localizedTitle]; | |
purchaseItem.action = ^ | |
{ | |
[self startSubscribeWithProductIdentifier:dpsProduct.productID]; | |
}; | |
[alertView addButtonItem:purchaseItem]; | |
[alertView addButtonItem:purchaseItem]; | |
[alertView addButtonItem:purchaseItem]; | |
} | |
[alertView show]; | |
[alertView release]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment