|
32 | 32 | #import "Coding_FileManager.h" |
33 | 33 | #import <MBProgressHUD/MBProgressHUD.h> |
34 | 34 | #import "MJPhotoBrowser.h" |
| 35 | +#import "FunctionTipsManager.h" |
35 | 36 |
|
36 | 37 | static NSMutableDictionary *_inputStrDict, *_inputMediaDict; |
37 | 38 |
|
@@ -521,10 +522,10 @@ - (void)customUIWithType:(UIMessageInputViewContentType)type{ |
521 | 522 | [_voiceButton addTarget:self action:@selector(voiceButtonClicked:) forControlEvents:UIControlEventTouchUpInside]; |
522 | 523 | [self addSubview:_voiceButton]; |
523 | 524 |
|
524 | | - if ([self needDisplayVoiceButtonRedpoint]) { |
| 525 | + if ([[FunctionTipsManager shareManager] needToTip:kFunctionTipStr_VoiceMessage]) { |
525 | 526 | _voiceRedpointView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 7, 7)]; |
526 | 527 | _voiceRedpointView.center = CGPointMake(31, 5); |
527 | | - _voiceRedpointView.backgroundColor = [UIColor colorWithRGBHex:0xFF3C30]; |
| 528 | + _voiceRedpointView.backgroundColor = [UIColor colorWithRGBHex:0xf75288]; |
528 | 529 | _voiceRedpointView.layer.cornerRadius = _voiceRedpointView.frame.size.width/2; |
529 | 530 | [_voiceButton addSubview:_voiceRedpointView]; |
530 | 531 | } |
@@ -762,7 +763,7 @@ - (void)voiceButtonClicked:(id)sender { |
762 | 763 | [_voiceRedpointView removeFromSuperview]; |
763 | 764 | self.voiceRedpointView = nil; |
764 | 765 |
|
765 | | - [self noDisplayVoiceButtonRedpoint]; |
| 766 | + [[FunctionTipsManager shareManager] markTiped:kFunctionTipStr_VoiceMessage]; |
766 | 767 | } |
767 | 768 | } |
768 | 769 |
|
@@ -1051,17 +1052,4 @@ - (UIImage *)backSpaceButtonImageForEmojiKeyboardView:(AGEmojiKeyboardView *)emo |
1051 | 1052 | return img; |
1052 | 1053 | } |
1053 | 1054 |
|
1054 | | -#pragma mark - Redpoint |
1055 | | - |
1056 | | -#define kInputViewVoiceButtonRedpoint @"InputViewVoiceButtonRedpoint" |
1057 | | - |
1058 | | -- (BOOL)needDisplayVoiceButtonRedpoint { |
1059 | | - return ![[NSUserDefaults standardUserDefaults] boolForKey:kInputViewVoiceButtonRedpoint]; |
1060 | | -} |
1061 | | - |
1062 | | -- (void)noDisplayVoiceButtonRedpoint { |
1063 | | - [[NSUserDefaults standardUserDefaults] setBool:YES forKey:kInputViewVoiceButtonRedpoint]; |
1064 | | - [[NSUserDefaults standardUserDefaults] synchronize]; |
1065 | | -} |
1066 | | - |
1067 | 1055 | @end |
0 commit comments