Commit 8aae71fb16f7fbc69f7b8782a91fffc6efddb39d
1 parent
1e72be78
0.6.5输入框配置
Showing
2 changed files
with
8 additions
and
3 deletions
CNLiveCMineModule.podspec
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | 8 | ||
| 9 | Pod::Spec.new do |s| | 9 | Pod::Spec.new do |s| |
| 10 | s.name = 'CNLiveCMineModule' | 10 | s.name = 'CNLiveCMineModule' |
| 11 | - s.version = '0.6.4' | 11 | + s.version = '0.6.5' |
| 12 | s.summary = '网家家C端个人中心' | 12 | s.summary = '网家家C端个人中心' |
| 13 | 13 | ||
| 14 | # This description is used to generate tags and improve search results. | 14 | # This description is used to generate tags and improve search results. |
| @@ -78,5 +78,7 @@ TODO: Add long description of the pod here. | @@ -78,5 +78,7 @@ TODO: Add long description of the pod here. | ||
| 78 | s.dependency 'libksygpulive' | 78 | s.dependency 'libksygpulive' |
| 79 | s.dependency 'CNLiveNewTripartiteManagement/MBProgressHUD' | 79 | s.dependency 'CNLiveNewTripartiteManagement/MBProgressHUD' |
| 80 | s.dependency 'CNLiveNewIMAManagerKit' | 80 | s.dependency 'CNLiveNewIMAManagerKit' |
| 81 | + s.dependency 'CNLiveNewTripartiteManagement/IQKeyboardManager' | ||
| 81 | end | 82 | end |
| 82 | 83 | ||
| 84 | + |
CNLiveCMineModule/Classes/CNCMine/View/CNMineEvaAlertView.m
| @@ -9,6 +9,7 @@ | @@ -9,6 +9,7 @@ | ||
| 9 | #import "CNSwitchView.h" | 9 | #import "CNSwitchView.h" |
| 10 | #import "CNPlaceholderTextView.h" | 10 | #import "CNPlaceholderTextView.h" |
| 11 | #import <DSBaseModule/DSBaseModule.h> | 11 | #import <DSBaseModule/DSBaseModule.h> |
| 12 | +#import <IQKeyboardManager/IQKeyboardManager.h> | ||
| 12 | @interface CNMineEvaAlertView() | 13 | @interface CNMineEvaAlertView() |
| 13 | @property (nonatomic, strong) UIImageView *topImage; | 14 | @property (nonatomic, strong) UIImageView *topImage; |
| 14 | @property (nonatomic, strong) UIView *bgView; | 15 | @property (nonatomic, strong) UIView *bgView; |
| @@ -187,12 +188,14 @@ | @@ -187,12 +188,14 @@ | ||
| 187 | return alertView; | 188 | return alertView; |
| 188 | } | 189 | } |
| 189 | - (void)dealloc{ | 190 | - (void)dealloc{ |
| 190 | - [[NSNotificationCenter defaultCenter] removeObserver:self]; | 191 | +// [[NSNotificationCenter defaultCenter] removeObserver:self]; |
| 191 | NSLog(@"CNMineEvaAlertView - dealloc"); | 192 | NSLog(@"CNMineEvaAlertView - dealloc"); |
| 192 | } | 193 | } |
| 193 | - (instancetype)init{ | 194 | - (instancetype)init{ |
| 194 | if(self = [super init]){ | 195 | if(self = [super init]){ |
| 195 | - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardShowNoti:) name:UIKeyboardWillShowNotification object:Nil]; | 196 | +// [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardShowNoti:) name:UIKeyboardWillShowNotification object:Nil]; |
| 197 | + [IQKeyboardManager sharedManager].enable = YES; | ||
| 198 | + [IQKeyboardManager sharedManager].enableAutoToolbar = YES; | ||
| 196 | } | 199 | } |
| 197 | return self; | 200 | return self; |
| 198 | } | 201 | } |