Skip to content

Commit

Permalink
Remove 6 months. Fixes #55
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Oct 1, 2012
1 parent f8e8f90 commit 7ae19b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
1 change: 0 additions & 1 deletion Classes/CDIUpgradeViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
- (void)upgrade:(id)sender;

- (void)buyThreeMonths:(id)sender;
- (void)buySixMonths:(id)sender;
- (void)buyOneYear:(id)sender;
- (void)restore:(id)sender;

Expand Down
20 changes: 4 additions & 16 deletions Classes/CDIUpgradeViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,11 @@ - (void)upgrade:(id)sender {

// Setup new buttons
UIButton *threeMonthsButton = [UIButton cheddarBigGrayButton];
threeMonthsButton.frame = CGRectMake(-280.0f, 238.0f + offset, 280.0f, 45.0f);
threeMonthsButton.frame = CGRectMake(-280.0f, 292.0f + offset, 280.0f, 45.0f);
[threeMonthsButton setTitle:@"3 months for $5.99" forState:UIControlStateNormal];
[threeMonthsButton addTarget:self action:@selector(buyThreeMonths:) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:threeMonthsButton];

UIButton *sixMonthsButton = [UIButton cheddarBigGrayButton];
sixMonthsButton.frame = CGRectMake(-280.0f, 292.0f + offset, 280.0f, 45.0f);
[sixMonthsButton setTitle:@"6 months for $9.99" forState:UIControlStateNormal];
[sixMonthsButton addTarget:self action:@selector(buySixMonths:) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:sixMonthsButton];


UIButton *yearButton = [UIButton cheddarBigOrangeButton];
yearButton.frame = CGRectMake(-280.0f, 346.0f + offset, 280.0f, 45.0f);
[yearButton setTitle:@"1 year for $19.99" forState:UIControlStateNormal];
Expand All @@ -171,9 +165,8 @@ - (void)upgrade:(id)sender {
[self _animateView:_laterButton xDisplacement:displacement delay:0.0];
[self _animateView:_upgradeButton xDisplacement:displacement delay:step];
[self _animateView:threeMonthsButton xDisplacement:displacement delay:(step * 2.0)];
[self _animateView:sixMonthsButton xDisplacement:displacement delay:(step * 3.0)];
[self _animateView:yearButton xDisplacement:displacement delay:(step * 4.0)];
[self _animateView:cancelButton xDisplacement:cancelDisplacement delay:(step * 4.0)];
[self _animateView:yearButton xDisplacement:displacement delay:(step * 3.0)];
[self _animateView:cancelButton xDisplacement:cancelDisplacement delay:(step * 3.0)];
[self _animateView:_restoreButton xDisplacement:restoreDisplacement delay:0.0];
}

Expand All @@ -183,11 +176,6 @@ - (void)buyThreeMonths:(id)sender {
}


- (void)buySixMonths:(id)sender {
[self _purchaseProductIdentifier:@"cheddar_plus_6mo"];
}


- (void)buyOneYear:(id)sender {
[self _purchaseProductIdentifier:@"cheddar_plus_1yr"];
}
Expand Down

0 comments on commit 7ae19b8

Please sign in to comment.