资源简介
这是一款模拟网易新闻、里面有推送消息聊天、消息聊天是集成了融云
代码片段和文件信息
//
// AboutViewController.m
// News
//
// Created by 曾绍鹏 on 15/9/6.
// Copyright (c) 2015年 spzeng. All rights reserved.
//
#define RONGCLOUD_IM_Token @“p3dVkUfj+4oEHqmnkbgtHCPzmSudAvnyELW6cDA4+BALHgHDJRR4oO9418wePpVFd3EzpwEP1JX/g+8m01XqlQ==“
#import “AboutViewController.h“
#import
//融云即时通讯
#import “ChatViewController.h“
#import
#define screenW self.view.bounds.size.width
#define screenH self.view.bounds.size.height
@interface AboutViewController ()
@end
@implementation AboutViewController
- (void)viewDidLoad {
[super viewDidLoad];
// 设置代理
[[RCIM sharedRCIM] setUserInfoDataSource:self];
self.view.backgroundColor = [UIColor whiteColor];
UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
btn.frame = CGRectMake(110 150 100 30);
[btn settitle:@“点击“ forState:UIControlStateNormal];
[btn settitleColor:[UIColor blackColor] forState:UIControlStateNormal];
[btn addTarget:self action:@selector(btnClick:) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:btn];
}
//实现方法
- (void)getUserInfoWithUserId:(NSString *)userId completion:(void (^)(RCUserInfo *))completion{
if ([@“888“ isEqual:userId]) {
RCUserInfo *user = [[RCUserInfo alloc]init];
user.userId = @“888“;
user.name = @“曾绍鹏“;
user.portraitUri = @“http://dd-feed.digi123.cn/201602/8cc8ddde5aa9a290.jpg“;
return completion(user);
}else if ([@“999“ isEqual:userId]) {
RCUserInfo *user = [[RCUserInfo alloc]init];
user.userId = @“999“;
user.name = @“蜡笔小新“;
user.portraitUri = @“http://dd-feed.digi123.cn/201602/8cc8ddde5aa9a290.jpg“;
return completion(user);
}
return completion(nil);
}
-(void)btnClick:(UIButton *)btn{
ChatViewController *conversationVC = [[ChatViewController alloc]init];
[self setHidesBottomBarWhenPushed:YES];
[self.navigationController pushViewController:conversationVC animated:YES];
// RCConversationViewController *conversationVC = [[RCConversationViewController alloc]init];
// conversationVC.conversationType =ConversationType_PRIVATE;
// [self setHidesBottomBarWhenPushed:YES];
// conversationVC.targetId = @“888“; //这里模拟自己给自己发消息,您可以替换成其他登录的用户的UserId
//// conversationVC.userName = @“测试1“;
// conversationVC.title = @“会话“;
// [self.navigationController pushViewController:conversationVC animated:YES];
// [self presentViewController:conversationVC animated:YES completion:nil];
// ChatViewController *chatListViewController = [[ChatViewController alloc]init];
// [self.navigationController pushViewController:chatListViewController animated:YES];
}
#pragma mark - 点击手势事件
- (void)tapImage:(UITapGestureRecognizer *)tap{
[self dismissViewControllerAnimated:YES completion:nil];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 0 2016-02-17 16:57 iKnow-鍙戝竷鐗?
文件 8196 2016-02-17 16:58 iKnow-鍙戝竷鐗?.DS_Store
目录 0 2016-02-24 10:27 __MACOSX\
文件 0 2016-02-24 10:27 __MACOSX\iKnow-鍙戝竷鐗?
文件 172 2016-02-17 16:58 __MACOSX\iKnow-鍙戝竷鐗?._.DS_Store
目录 0 2016-02-15 15:46 iKnow-鍙戝竷鐗?iKnow.xcodeproj\
文件 115597 2016-02-15 15:46 iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.pbxproj
目录 0 2016-02-24 10:27 __MACOSX\iKnow-鍙戝竷鐗?iKnow.xcodeproj\
文件 172 2016-02-15 15:46 __MACOSX\iKnow-鍙戝竷鐗?iKnow.xcodeproj\._project.pbxproj
目录 0 2015-09-24 15:19 iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\
文件 186 2015-09-09 15:55 iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\contents.xcworkspacedata
目录 0 2016-02-24 10:27 __MACOSX\iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\
文件 172 2015-09-09 15:55 __MACOSX\iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\._contents.xcworkspacedata
目录 0 2016-02-17 16:58 iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\
目录 0 2015-09-24 15:19 iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\qianfeng1052.xcuserdatad\
文件 53753 2015-09-24 14:53 iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\qianfeng1052.xcuserdatad\UserInterfaceState.xcuserstate
目录 0 2016-02-24 10:27 __MACOSX\iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\
目录 0 2016-02-24 10:27 __MACOSX\iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\qianfeng1052.xcuserdatad\
文件 172 2015-09-24 14:53 __MACOSX\iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\qianfeng1052.xcuserdatad\._UserInterfaceState.xcuserstate
文件 172 2015-09-24 15:19 __MACOSX\iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\._qianfeng1052.xcuserdatad
目录 0 2015-09-24 15:19 iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\zhangxingye.xcuserdatad\
文件 55276 2015-09-22 10:38 iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\zhangxingye.xcuserdatad\UserInterfaceState.xcuserstate
目录 0 2016-02-24 10:27 __MACOSX\iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\zhangxingye.xcuserdatad\
文件 172 2015-09-22 10:38 __MACOSX\iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\zhangxingye.xcuserdatad\._UserInterfaceState.xcuserstate
文件 172 2015-09-24 15:19 __MACOSX\iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\._zhangxingye.xcuserdatad
目录 0 2016-02-17 17:31 iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\zhirq.xcuserdatad\
文件 20654 2016-02-17 17:31 iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\zhirq.xcuserdatad\UserInterfaceState.xcuserstate
目录 0 2016-02-17 16:53 iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\Zsp.xcuserdatad\
文件 395261 2016-02-17 16:53 iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\Zsp.xcuserdatad\UserInterfaceState.xcuserstate
目录 0 2016-02-24 10:27 __MACOSX\iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\Zsp.xcuserdatad\
文件 172 2016-02-17 16:53 __MACOSX\iKnow-鍙戝竷鐗?iKnow.xcodeproj\project.xcworkspace\xcuserdata\Zsp.xcuserdatad\._UserInterfaceState.xcuserstate
............此处省略1637个文件信息
相关资源
- 一个简单的SSH框架项目
- DataFountain 互联网新闻情感分析数据集
- 一个简易版的新闻应用
- 网易新闻客户端高仿
- 2018年招商银行Fintech精英训练营复赛第
- 新闻管理系统源码
- 轻读版新闻浏览app
- 新闻客户端app源码
- 仿头条、网易新闻频道管理
- 新闻发布struts2+Hibernate 实现
- 复旦新闻语料库测试集
- 基于聚合数据API的新闻app
- 校园新闻管理系统
- MaterialTest无网络优化20191025.rar
- 新闻文本分类数据集50000条
- 新闻分类文本分类
- 搜狐新闻中文语料已分类整理
- 10万条社会类新闻未处理数据集
- 新闻标题数据集.zip
- 10万条新闻数据的数据集
- 复旦大学文本分类新闻语料测试集+训
- 毕业设计:基于Web的学校新闻发布系
- 搜狐2012新闻语料已分类,utf8格式
- 新闻类中文文本分类数据集
- 蓝色新闻博客自媒体头条网织梦模板
- H5自适应新闻自媒体网站源码
- 新闻发布系统需求分析
- 抓取新浪的新闻项目 简单
- 新闻发布系统简单的制作
- 新闻管理系统需求分析说明书.doc
评论
共有 条评论