文章来源:淘论文网   发布者: 毕业设计   浏览量: 30



还可以点击去查询以下关键词:
[粒子]    [掉落]    [烟花]    [雪花]    [喷射]    [礼物]    [冒泡]    [效果]    [粒子掉落、烟花、雪花、喷射、礼物冒泡效果]   

项目介绍:

直播礼物冒泡效果, 粒子掉落、烟花、雪花、喷射效果
实现主要代码:


[Objective-C] 查看源文件 复制代码

static NSString *reuseIdentifier = @'reuserCell'; @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; self.title = @'效果集合'; [self _initTabelView]; // Do any additional setup after loading the view, typically from a nib. } - (void) _initTabelView{ _titles = @[@'粒子掉落',@'直播礼物冒泡效果',@'烟花效果',@'喷射效果',@'雪花飘落']; UITableView *tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain]; tableView.delegate = self; tableView.dataSource = self; [self.view addSubview:tableView]; self.tableView = tableView; tableView.tableFooterView = [[UIView alloc] init]; [tableView setExclusiveTouch:YES]; [tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:reuseIdentifier]; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ return _titles.count; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:reuseIdentifier forIndexPath:indexPath]; cell.textLabel.text = _titles[indexPath.row]; return cell; } -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ [tableView deselectRowAtIndexPath:indexPath animated:YES]; switch (indexPath.row) { case 0:{ [self.navigationController pushViewController:[[DropViewController alloc] init] animated:YES]; break; } case 1:{ [self.navigationController pushViewController:[[GiftEffectViewController alloc] init] animated:YES]; break; } case 2:{ [self.navigationController pushViewController:[[DazViewController alloc] init] animated:YES]; break; } case 3:{ [self.navigationController pushViewController:[[SprayViewController alloc] init] animated:YES]; break; } case 4:{ [self.navigationController pushViewController:[[SnowViewController alloc] init] animated:YES]; break; } default: break; } }

论文开题报告

这里还有:


还可以点击去查询:
[粒子]    [掉落]    [烟花]    [雪花]    [喷射]    [礼物]    [冒泡]    [效果]    [粒子掉落、烟花、雪花、喷射、礼物冒泡效果]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/1970.docx
  • 上一篇:WMPlayer视频播放器,AVPlayer的封装
  • 下一篇:iOS-TabBar中间凸起点击完全有反应