Commit 7f95e0f0c3355d35ceb81315ac90b5a251788cc3
1 parent
3aba199a
提交0.0.10
Showing
4 changed files
with
21 additions
and
17 deletions
CNLiveOrganizationValidationModule.podspec
CNLiveOrganizationValidationModule/Classes/CNLiveOrganizationValidationModule/Controller/CNLiveBOrganizationValidattionController.m
| ... | ... | @@ -1067,7 +1067,7 @@ |
| 1067 | 1067 | |
| 1068 | 1068 | - (UIView *)headerView { |
| 1069 | 1069 | if (!_headerView) { |
| 1070 | - _headerView = [[CNLiveBOrganizationValidationHeaderView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, 130 * (KScreenHeight/667))]; | |
| 1070 | + _headerView = [[CNLiveBOrganizationValidationHeaderView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, 130)]; | |
| 1071 | 1071 | } |
| 1072 | 1072 | return _headerView;; |
| 1073 | 1073 | } | ... | ... |
CNLiveOrganizationValidationModule/Classes/CNLiveOrganizationValidationModule/View/CNLiveBOrganizationValidationHeaderView.m
| ... | ... | @@ -86,42 +86,42 @@ |
| 86 | 86 | make.left.equalTo(weakSelf.mas_left).offset(0); |
| 87 | 87 | make.top.equalTo(weakSelf.mas_top).offset(0); |
| 88 | 88 | make.width.mas_equalTo(KScreenWidth); |
| 89 | - make.height.mas_equalTo(120.5 * KScreenWidth / 375); | |
| 89 | + make.height.mas_equalTo(120.5); | |
| 90 | 90 | }]; |
| 91 | 91 | |
| 92 | 92 | [self.tipImageVSecond mas_makeConstraints:^(MASConstraintMaker *make) { |
| 93 | 93 | make.centerX.equalTo(weakSelf.mas_centerX).offset(0); |
| 94 | 94 | make.top.equalTo(weakSelf.mas_top).offset(21.5); |
| 95 | - make.width.mas_equalTo(55 * KScreenWidth / 375); | |
| 96 | - make.height.mas_equalTo(77 * KScreenWidth / 375); | |
| 95 | + make.width.mas_equalTo(55); | |
| 96 | + make.height.mas_equalTo(77); | |
| 97 | 97 | }]; |
| 98 | 98 | |
| 99 | 99 | [self.tipLogImageVFirst mas_makeConstraints:^(MASConstraintMaker *make) { |
| 100 | 100 | make.right.equalTo(weakSelf.tipImageVSecond.mas_left).offset( -22); |
| 101 | - make.centerY.equalTo(weakSelf.tipImageVSecond.mas_centerY); | |
| 102 | - make.width.mas_equalTo(8.5 * KScreenWidth / 375); | |
| 103 | - make.height.mas_equalTo(15 * KScreenWidth / 375); | |
| 101 | + make.top.equalTo(weakSelf.tipImageVSecond.mas_top).offset(20); | |
| 102 | + make.width.mas_equalTo(8.5); | |
| 103 | + make.height.mas_equalTo(15); | |
| 104 | 104 | }]; |
| 105 | 105 | |
| 106 | 106 | [self.tipLogImageVSecond mas_makeConstraints:^(MASConstraintMaker *make) { |
| 107 | 107 | make.left.equalTo(weakSelf.tipImageVSecond.mas_right).offset(22); |
| 108 | - make.centerY.equalTo(weakSelf.tipImageVSecond.mas_centerY); | |
| 109 | - make.width.mas_equalTo(8.5 * KScreenWidth / 375); | |
| 110 | - make.height.mas_equalTo(15 * KScreenWidth / 375); | |
| 108 | + make.top.equalTo(weakSelf.tipImageVSecond.mas_top).offset(20); | |
| 109 | + make.width.mas_equalTo(8.5); | |
| 110 | + make.height.mas_equalTo(15); | |
| 111 | 111 | }]; |
| 112 | 112 | |
| 113 | 113 | [self.tipImageVFirst mas_makeConstraints:^(MASConstraintMaker *make) { |
| 114 | 114 | make.right.equalTo(weakSelf.tipLogImageVFirst.mas_left).offset(-18); |
| 115 | - make.centerY.equalTo(weakSelf.tipLogImageVFirst.mas_centerY); | |
| 116 | - make.width.mas_equalTo(72 * KScreenWidth / 375); | |
| 117 | - make.height.mas_equalTo(77 * KScreenWidth / 375); | |
| 115 | + make.top.equalTo(weakSelf.tipImageVSecond.mas_top); | |
| 116 | + make.width.mas_equalTo(72); | |
| 117 | + make.height.mas_equalTo(77); | |
| 118 | 118 | }]; |
| 119 | 119 | |
| 120 | 120 | [self.tipImageVThird mas_makeConstraints:^(MASConstraintMaker *make) { |
| 121 | 121 | make.left.equalTo(weakSelf.tipLogImageVSecond.mas_right).offset(18); |
| 122 | - make.centerY.equalTo(weakSelf.tipLogImageVFirst.mas_centerY); | |
| 123 | - make.width.mas_equalTo(55 * KScreenWidth / 375); | |
| 124 | - make.height.mas_equalTo(77 * KScreenWidth / 375); | |
| 122 | + make.top.equalTo(weakSelf.tipImageVSecond.mas_top); | |
| 123 | + make.width.mas_equalTo(55); | |
| 124 | + make.height.mas_equalTo(77); | |
| 125 | 125 | }]; |
| 126 | 126 | |
| 127 | 127 | } | ... | ... |
Example/CNLiveOrganizationValidationModule/main.m
| ... | ... | @@ -8,10 +8,14 @@ |
| 8 | 8 | |
| 9 | 9 | @import UIKit; |
| 10 | 10 | #import "CNLIVEBAppDelegate.h" |
| 11 | +#import <CNLiveEnvironment/CNLiveEnvironment.h> | |
| 11 | 12 | |
| 12 | 13 | int main(int argc, char * argv[]) |
| 13 | 14 | { |
| 14 | 15 | @autoreleasepool { |
| 16 | + | |
| 17 | + [CNLiveEnvironmentManager setAppType:CNLiveAppTypeBLive environmentType:CNLiveDebugAppStore];//CNLiveDebugAppStore//CNLiveProductionAppStore//CNLiveTestFlight | |
| 18 | + | |
| 15 | 19 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([CNLIVEBAppDelegate class])); |
| 16 | 20 | } |
| 17 | 21 | } | ... | ... |