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