Subversion Repository Public Repository

Nextrek

Diff Revisions 1057 vs 1058 for /iOS/SafariArte/trunk/SafariArte/Controllers/IAPVC/IAPVC.m

Diff revisions: vs.
  @@ -66,18 +66,24 @@
66 66 /*
67 67 @"SA_01"
68 68 @"SA_02"
69 + @"SA_03"
69 70 */
70 71
71 72 NSLog(@"CREDITS -- BEFORE: %@", DATAMANAGER.user.credits);
72 73
73 74 if ([productIdentifier isEqualToString:@"SA_01"]) {
74 75
75 - DATAMANAGER.user.credits = [NSNumber numberWithInt:[DATAMANAGER.user.credits intValue] + 5];
76 + DATAMANAGER.user.credits = [NSNumber numberWithInt:[DATAMANAGER.user.credits intValue] + 50];
76 77 }
77 78 else if([productIdentifier isEqualToString:@"SA_02"]) {
78 79
79 - DATAMANAGER.user.credits = [NSNumber numberWithInt:[DATAMANAGER.user.credits intValue] + 10];
80 + DATAMANAGER.user.credits = [NSNumber numberWithInt:[DATAMANAGER.user.credits intValue] + 100];
80 81 }
82 + else if([productIdentifier isEqualToString:@"SA_03"]) {
83 +
84 + DATAMANAGER.user.credits = [NSNumber numberWithInt:[DATAMANAGER.user.credits intValue] + 250];
85 + }
86 +
81 87
82 88 NSLog(@"CREDITS -- AFTER: %@", DATAMANAGER.user.credits);
83 89
  @@ -122,7 +128,7 @@
122 128
123 129 SKProduct *product = [self.products objectAtIndex:indexPath.row];
124 130
125 - cell.iapNameValue.text = product.localizedTitle;
131 + cell.iapNameValue.text = [NSString stringWithFormat:@"%@\n%@", product.localizedTitle , product.localizedDescription];
126 132 cell.iapPriceValue.text = product.priceAsString;
127 133
128 134 return cell;