# secret-app **Repository Path**: zicjin/secret-app ## Basic Information - **Project Name**: secret-app - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-09-24 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Todo: ChatKit-OC https://github.com/leancloud/ChatKit-OC http://www.jianshu.com/p/a2cb99dcd4fe 第三方平台账号登录组件(SNS)开发指南 https://leancloud.cn/docs/sns.html CYLTabBarController https://github.com/ChenYilong/CYLTabBarController#第四步可选创建自定义的形状不规则加号按钮 实时通信 REST API 使用指南 https://leancloud.cn/docs/realtime_rest_api.html#文本消息 curl -X POST \ -H "X-LC-Id: srE2Gtjae1coGLnn5gTV07dB-gzGzoHsz" \ -H "X-LC-Key: kkVpDemlrtVnJdsVDcKhTz9e,master" \ -H "Content-Type: application/json" \ -d '{"from_peer": "Harry", "conv_id": "59c7b715f9d06fd6c92abf31", "message": "{\"_lctype\":-1,\"_lctext\":\"明天上映了我家爱豆的新片呢。好激动!!!\",\"_lcattrs\":{\"a\":\"_lcattrs 是用来存储用户自定义的一些键值对\"}}", "transient": false}' \ https://sre2gtja.api.lncld.net/1.1/rtm/messages # Change LCCKChatBar.m: //[self.textView mas_makeConstraints:^(MASConstraintMaker *make) { // make.left.equalTo(self.inputBarBackgroundView.mas_left).with.offset(offset); // make.right.equalTo(self.inputBarBackgroundView.mas_right).with.offset(-offset); // make.top.equalTo(self.inputBarBackgroundView).with.offset(kChatBarTextViewBottomOffset); // make.bottom.equalTo(self.inputBarBackgroundView).with.offset(-kChatBarTextViewBottomOffset); // make.height.mas_greaterThanOrEqualTo(kLCCKChatBarTextViewFrameMinHeight); //}]; ... -(void)textViewTapped:(id)sender { UIActionSheet * sheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherButtonTitles:@"aaa", @"bbb", @"ccc", nil]; [sheet showInView:self.inputBarBackgroundView]; } - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { int result = buttonIndex; NSLog(@"result = %d", result); } - (void)buttonAction:(UIButton *)button { [self textViewTapped:button]; return; ... } - (UITextView *)textView { if (!_textView) { _textView = [[UITextView alloc] init]; ... _textView.scrollsToTop = NO; _textView.editable = NO; UITapGestureRecognizer *gestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(textViewTapped:)]; [_textView addGestureRecognizer:gestureRecognizer]; } return _textView; }