1
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#import "KBShopVM.h"
|
||||
#import "IAPVerifyTransactionObj.h"
|
||||
#import "keyBoard-Swift.h"
|
||||
#import "KBWebViewViewController.h"
|
||||
static NSString * const kKBJfPayCellId = @"kKBJfPayCellId";
|
||||
|
||||
@interface KBJfPay () <UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
|
||||
@@ -357,7 +358,7 @@ static NSString * const kKBJfPayCellId = @"kKBJfPayCellId";
|
||||
}
|
||||
|
||||
- (void)agreementButtonAction{
|
||||
[KBHUD showInfo:KBLocalized(@"Open agreement")];
|
||||
[KBWebViewViewController presentLegalDocumentType:KBLegalDocumentTypeMembershipAgreement fromViewController:self];
|
||||
}
|
||||
|
||||
#pragma mark - Lazy UI
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#import "PagingViewTableHeaderView.h"
|
||||
#import "JXCategoryTitleView.h"
|
||||
#import "keyBoard-Swift.h"
|
||||
#import "KBWebViewViewController.h"
|
||||
|
||||
static const CGFloat JXTableHeaderViewHeight = 224;
|
||||
static const CGFloat JXheightForHeaderInSection = 39;
|
||||
@@ -202,7 +203,7 @@ static const CGFloat JXheightForHeaderInSection = 39;
|
||||
[self.restoreButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.centerY.equalTo(self.closeButton);
|
||||
make.right.equalTo(self.view).offset(-15);
|
||||
make.width.mas_equalTo(90);
|
||||
make.left.greaterThanOrEqualTo(self.closeButton.mas_right).offset(12);
|
||||
make.height.mas_equalTo(32);
|
||||
}];
|
||||
|
||||
@@ -350,7 +351,7 @@ static const CGFloat JXheightForHeaderInSection = 39;
|
||||
}
|
||||
|
||||
- (void)onTapAgreementButton {
|
||||
[KBHUD showInfo:KBLocalized(@"Open agreement")];
|
||||
[KBWebViewViewController presentLegalDocumentType:KBLegalDocumentTypeMembershipAgreement fromViewController:self];
|
||||
}
|
||||
|
||||
- (void)onTapRestoreButton {
|
||||
@@ -392,9 +393,12 @@ static const CGFloat JXheightForHeaderInSection = 39;
|
||||
[_restoreButton setTitle:KBLocalized(@"Resume Purchase") forState:UIControlStateNormal];
|
||||
[_restoreButton setTitleColor:[UIColor colorWithHex:0x02BEAC] forState:UIControlStateNormal];
|
||||
_restoreButton.titleLabel.font = [KBFont medium:10];
|
||||
_restoreButton.titleLabel.lineBreakMode = NSLineBreakByClipping;
|
||||
_restoreButton.contentEdgeInsets = UIEdgeInsetsMake(0, 12, 0, 12);
|
||||
_restoreButton.imageEdgeInsets = UIEdgeInsetsMake(0, -4, 0, 4);
|
||||
_restoreButton.titleEdgeInsets = UIEdgeInsetsMake(0, 6, 0, -6);
|
||||
[_restoreButton setContentCompressionResistancePriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
|
||||
[_restoreButton setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
|
||||
[_restoreButton addTarget:self action:@selector(onTapRestoreButton) forControlEvents:UIControlEventTouchUpInside];
|
||||
}
|
||||
return _restoreButton;
|
||||
|
||||
Reference in New Issue
Block a user