Commit aeaa8e230694846e156fd6d50bdbd0cf8fb3d0b5

Authored by 王军波
1 parent c21499b1

探针更新发布版

CNLiveChatSDKDemo/CNLiveChatSDKDemo.xcodeproj/xcuserdata/cnlive.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
... ... @@ -2,86 +2,4 @@
2 2 <Bucket
3 3 type = "1"
4 4 version = "2.0">
5   - <Breakpoints>
6   - <BreakpointProxy
7   - BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
8   - <BreakpointContent
9   - shouldBeEnabled = "Yes"
10   - ignoreCount = "0"
11   - continueAfterRunningActions = "No"
12   - filePath = "CNLiveChatSDKDemo/ChatRoomViewController.m"
13   - timestampString = "512736833.069268"
14   - startingColumnNumber = "9223372036854775807"
15   - endingColumnNumber = "9223372036854775807"
16   - startingLineNumber = "40"
17   - endingLineNumber = "40"
18   - landmarkName = "-viewDidLoad"
19   - landmarkType = "7">
20   - </BreakpointContent>
21   - </BreakpointProxy>
22   - <BreakpointProxy
23   - BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
24   - <BreakpointContent
25   - shouldBeEnabled = "Yes"
26   - ignoreCount = "0"
27   - continueAfterRunningActions = "No"
28   - filePath = "CNLiveChatSDKDemo/ChatRoomViewController.m"
29   - timestampString = "512736833.999143"
30   - startingColumnNumber = "9223372036854775807"
31   - endingColumnNumber = "9223372036854775807"
32   - startingLineNumber = "44"
33   - endingLineNumber = "44"
34   - landmarkName = "-viewDidLoad"
35   - landmarkType = "7">
36   - </BreakpointContent>
37   - </BreakpointProxy>
38   - <BreakpointProxy
39   - BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
40   - <BreakpointContent
41   - shouldBeEnabled = "Yes"
42   - ignoreCount = "0"
43   - continueAfterRunningActions = "No"
44   - filePath = "CNLiveChatSDKDemo/ChatRoomViewController.m"
45   - timestampString = "512736879.844145"
46   - startingColumnNumber = "9223372036854775807"
47   - endingColumnNumber = "9223372036854775807"
48   - startingLineNumber = "136"
49   - endingLineNumber = "136"
50   - landmarkName = "-textFieldShouldReturn:"
51   - landmarkType = "7">
52   - </BreakpointContent>
53   - </BreakpointProxy>
54   - <BreakpointProxy
55   - BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
56   - <BreakpointContent
57   - shouldBeEnabled = "Yes"
58   - ignoreCount = "0"
59   - continueAfterRunningActions = "No"
60   - filePath = "CNLiveChatSDKDemo/ChatRoomViewController.m"
61   - timestampString = "512736919.896069"
62   - startingColumnNumber = "9223372036854775807"
63   - endingColumnNumber = "9223372036854775807"
64   - startingLineNumber = "160"
65   - endingLineNumber = "160"
66   - landmarkName = "-textFieldShouldReturn:"
67   - landmarkType = "7">
68   - </BreakpointContent>
69   - </BreakpointProxy>
70   - <BreakpointProxy
71   - BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
72   - <BreakpointContent
73   - shouldBeEnabled = "Yes"
74   - ignoreCount = "0"
75   - continueAfterRunningActions = "No"
76   - filePath = "CNLiveChatSDKDemo/ChatRoomViewController.m"
77   - timestampString = "512736931.462598"
78   - startingColumnNumber = "9223372036854775807"
79   - endingColumnNumber = "9223372036854775807"
80   - startingLineNumber = "173"
81   - endingLineNumber = "173"
82   - landmarkName = "-onReceived:"
83   - landmarkType = "7">
84   - </BreakpointContent>
85   - </BreakpointProxy>
86   - </Breakpoints>
87 5 </Bucket>
... ...
CNLiveChatSDKDemo/CNLiveChatSDKDemo/AppDelegate.m
... ... @@ -33,14 +33,14 @@
33 33 // 以用户信息登陆 可以在登陆处实现此方法
34 34 // ***** 一次登陆即可,之后无论是网络出现异常或者App有前后台的切换等,SDK都会负责自动重连。
35 35 // ***** 除非您已经手动将连接断开,或者少数无法自动重连的情况,否则您不需要自己再手动重连。
36   - CNLiveChatUserInfo *userInfo = [[CNLiveChatUserInfo alloc] initWithUserId:@"20170315" name:@"20170315" portrait:@""];
  36 + CNLiveChatUserInfo *userInfo = [[CNLiveChatUserInfo alloc] initWithUserId:@"20170311" name:@"11" portrait:@""];
37 37  
38 38 [[CNLiveChatManager sharedCNLiveChatManager] loginServer:userInfo success:^(NSString *userId) {
39 39  
40 40 NSLog(@"用户:%@ 已成功登陆",userId);
41 41  
42 42 // 更改昵称
43   - [CNLiveChatManager sharedCNLiveChatManager].currentUserInfo.name = @"小";
  43 + [CNLiveChatManager sharedCNLiveChatManager].currentUserInfo.name = @"小";
44 44  
45 45 } error:^(CNLiveChatConnectErrorCode errors) {
46 46  
... ...
CNLiveChatSDKDemo/CNLiveChatSDKDemo/PrivateViewController.m
... ... @@ -117,7 +117,7 @@ static NSString *priCellId = @&quot;priCellId&quot;;
117 117 #pragma mark - UITextFieldDelegate !!!!!!!!!!!!!!!!!!!!!!!!!!
118 118 - (BOOL)textFieldShouldReturn:(UITextField *)textField { // 发送消息
119 119  
120   - [[CNLiveChatManager sharedCNLiveChatManager] sendMessage:textField.text type:CNLive_ConversationType_PRIVATE targetId:@"20170311" success:^(CNLiveChatMessage *message) {
  120 + [[CNLiveChatManager sharedCNLiveChatManager] sendMessage:textField.text type:CNLive_ConversationType_PRIVATE targetId:@"70_20170315" success:^(CNLiveChatMessage *message) {
121 121  
122 122 NSLog(@"发送消息成功:%@",message.messageId);
123 123 // 自己发送的消息不会被onReceived:方法实时监听,需要自己做处理
... ... @@ -206,7 +206,7 @@ static NSString *priCellId = @&quot;priCellId&quot;;
206 206 - (void)getPrivateChattingRecords {
207 207  
208 208 // 获取最新消息
209   - NSArray *messageArray = [[CNLiveChatManager sharedCNLiveChatManager] getLatestMessages:CNLive_ConversationType_PRIVATE targetId:@"20170311" count:10];
  209 + NSArray *messageArray = [[CNLiveChatManager sharedCNLiveChatManager] getLatestMessages:CNLive_ConversationType_PRIVATE targetId:@"70_20170315" count:100];
210 210  
211 211 for (CNLiveChatMessage *message in messageArray) {
212 212  
... ...
发布版SDK/CNLiveChatManager.framework/CNLiveChatManager
No preview for this file type
发布版SDK/CNLiveChatManager.framework/Info.plist
No preview for this file type