提交
This commit is contained in:
@@ -214,6 +214,9 @@
|
||||
#pragma mark - Event response
|
||||
- (void)onMicButtonClicked:(UIButton *)sender {
|
||||
NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"];
|
||||
#if DEBUG
|
||||
isCanChat = 1;
|
||||
#endif
|
||||
if (isCanChat != 1) {
|
||||
[self alertChat];
|
||||
return;
|
||||
@@ -235,6 +238,9 @@
|
||||
|
||||
- (void)onKeyboardButtonClicked:(UIButton *)sender {
|
||||
NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"];
|
||||
#if DEBUG
|
||||
isCanChat = 1;
|
||||
#endif
|
||||
if (isCanChat != 1) {
|
||||
[self alertChat];
|
||||
return;
|
||||
@@ -252,6 +258,9 @@
|
||||
|
||||
- (void)onFaceEmojiButtonClicked:(UIButton *)sender {
|
||||
NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"];
|
||||
#if DEBUG
|
||||
isCanChat = 1;
|
||||
#endif
|
||||
if (isCanChat != 1) {
|
||||
[self alertChat];
|
||||
return;
|
||||
@@ -271,6 +280,9 @@
|
||||
|
||||
- (void)onMoreButtonClicked:(UIButton *)sender {
|
||||
NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"];
|
||||
#if DEBUG
|
||||
isCanChat = 1;
|
||||
#endif
|
||||
if (isCanChat != 1) {
|
||||
[self alertChat];
|
||||
return;
|
||||
@@ -387,6 +399,9 @@
|
||||
#pragma mark-- UITextViewDelegate
|
||||
- (void)textViewDidBeginEditing:(UITextView *)textView {
|
||||
NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"];
|
||||
#if DEBUG
|
||||
isCanChat = 1;
|
||||
#endif
|
||||
if (isCanChat != 1) {
|
||||
[self.inputTextView resignFirstResponder];
|
||||
[self alertChat];
|
||||
|
||||
Reference in New Issue
Block a user