Fenix Wang 8 anos atrás
pai
commit
a3ad5b1dfa

BIN
NIMDemo/NIM.xcworkspace/xcuserdata/Fenix.xcuserdatad/UserInterfaceState.xcuserstate


+ 1 - 1
NIMDemo/NIMDemo/SectionTrade/TradeModifyViewController.m

@@ -162,7 +162,7 @@
     tipLabel.font = [UIFont systemFontOfSize:12];
     tipLabel.text = @"一天可发布三条";
     tipLabel.textAlignment = NSTextAlignmentRight;
-    [_scrollView addSubview:tipLabel];
+    //[_scrollView addSubview:tipLabel];
     
     _slider = [[UISlider alloc] initWithFrame:CGRectMake(50, _titleLabel.bottom, _scrollView.width-70, 40)];
     _slider.minimumValue = 0;

+ 1 - 1
NIMDemo/NIMDemo/User.h

@@ -12,7 +12,7 @@
 #import "UserInfo.h"
 
 #define Image_Compression_Quality   0.5
-#define Trade_Max_Publish_Count     3
+#define Trade_Max_Publish_Count     3000000
 #define Password_Min_Length         8
 
 @interface ChatStick : NSObject

+ 2 - 1
NIMKit/NIMKit/Classes/Sections/Input/TradeInputContainer.m

@@ -84,7 +84,7 @@
     tipLabel.font = [UIFont systemFontOfSize:12];
     tipLabel.text = @"一天可发布三条";
     tipLabel.textAlignment = NSTextAlignmentRight;
-    [self addSubview:tipLabel];
+    //[self addSubview:tipLabel];
     
     _slider = [[UISlider alloc] initWithFrame:CGRectMake(20, 40, self.nim_width-40, 40)];
     _slider.minimumValue = 1;
@@ -113,6 +113,7 @@
     _growTextView.textColor = [UIColor blackColor];
     _growTextView.backgroundColor = [UIColor clearColor];
     _growTextView.returnKeyType = UIReturnKeyDone;
+    _growTextView.placeholderAttributedText = [[NSAttributedString alloc] initWithString:@"输入内容"];
     [_textViewContainer addSubview:_growTextView];
     
     _sendBtn = [[UIButton alloc] initWithFrame:CGRectMake(_textViewContainer.nim_width-75, 0, 75, 40)];