{"id":13696974,"url":"https://github.com/tangtiancheng/DouYinComment","last_synced_at":"2025-05-03T17:33:04.390Z","repository":{"id":45265582,"uuid":"180554862","full_name":"tangtiancheng/DouYinComment","owner":"tangtiancheng","description":"iOS Widget Video Gif Play Animation 1. gif视频播放小组件, 帧动画小组件, 摇摇乐小组件, 网易云iOS小组件,动态Widget,时钟组件,风扇组件,滚动照片组件; 2.抖音视频转场动画,抖音左滑push进个人主页, 评论手势拖拽效果 , 视频播放, 边下边播, 预加载, TikTok ; 3.铃声多多,上传铃声音频到库乐队(GarageBand) 4.微博主页、简书主页等。多页面嵌套列表分页滚动，上下滑动，左右滑动切换页面。类似TableView共用HeaderView悬浮,仿头条标签编辑,铃声多多音乐播放界面(豆瓣电影主页)。","archived":false,"fork":false,"pushed_at":"2024-08-07T08:46:18.000Z","size":138976,"stargazers_count":568,"open_issues_count":7,"forks_count":96,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-10-08T08:45:14.945Z","etag":null,"topics":["animation","douyin","frame","garageband","gif","header","ios","pan","push","rotate","scroll","shake","tiktok","transition","ttctool","video","viewpage","wangyiyun","widget"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tangtiancheng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-10T10:05:43.000Z","updated_at":"2024-09-30T07:07:07.000Z","dependencies_parsed_at":"2022-07-16T02:00:30.352Z","dependency_job_id":"d04c9e10-f204-481b-911b-40595b499cd5","html_url":"https://github.com/tangtiancheng/DouYinComment","commit_stats":{"total_commits":124,"total_committers":2,"mean_commits":62.0,"dds":0.4032258064516129,"last_synced_commit":"d653a254fc868f3cf4b779548d3c23c0cbdf3308"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangtiancheng%2FDouYinComment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangtiancheng%2FDouYinComment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangtiancheng%2FDouYinComment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tangtiancheng%2FDouYinComment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tangtiancheng","download_url":"https://codeload.github.com/tangtiancheng/DouYinComment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224369836,"owners_count":17299961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animation","douyin","frame","garageband","gif","header","ios","pan","push","rotate","scroll","shake","tiktok","transition","ttctool","video","viewpage","wangyiyun","widget"],"created_at":"2024-08-02T18:00:50.790Z","updated_at":"2025-05-03T17:33:04.380Z","avatar_url":"https://github.com/tangtiancheng.png","language":"Objective-C","funding_links":[],"categories":["UI Components"],"sub_categories":[],"readme":"# DouYinComment\n\n- [English](https://github.com/tangtiancheng/DouYinComment/blob/master/README_EN.md)\n\n\n支持pod导入:  \npod 'TTCTool  \n或者只导入单个功能  \n抖音评论效果: pod 'TTCTool/TCCommentsPopView'  \n抖音转场动画: pod 'TTCTool/TTCTransition'  \n抖音左滑进入个人主页: pod 'TTCTool/TTCPanPush'  \n分页: pod 'TTCTool/TCViewPage'  \n标签管理: pod 'TTCTool/TagChannelManager'  \n\n\n\n\n这些功能大部分都是我在 \"铃声多多\"APP里已经用了,iOS端日活有70万左右, 常年保持AppStore 排行榜100多名, 不是让你们当小白鼠哈，仅仅为了自己记录(装逼)一下, 外加能帮别人一点是一点吧,有需要就拿去用!\n\n\n这个Demo主要功 能:\n\n## 1.iOS播放gif视频小组件,小组件帧动画,摇摇乐小组件,动态Widget, 网易云iOS可编辑小组件, 风扇小组件, 时钟小组件, 滚动照片小组件, 自己去跑起来看吧\n\n\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/小组件动画.gif)\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/小组件添加.gif)\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/小组件编辑.gif)\n\n\n\n## 2.这个Demo有仿照抖音的小视频评论手势拖拽效果 (直接将TCCommentsPopView这个类拖入您的项目即可使用,很简单)\n可以说完全和抖音的效果一模一样,该功能我已经在\"铃声多多\"项目中使用. 我在github,cocoachina,coco4app等网址上找了很久,都没有一个demo是能完全和抖音的一致的.如果觉得好用希望给一个star\n\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/comment.gif)\n\n## 3.一行代码实现仿抖音左滑Push进个人主页功能\n  一行代码实现仿抖音 左滑 push进入个人主页,  \n    1.把TTCPanPushTransition文件夹拖入你的项目中,  \n    2.在需要push的控制器类中  #import \"UIViewController+TTCPanPush.h\"  \n    3.然后在videDidLoad方法中调用getpanPushToViewController:方法, block返回你的个人主页控制器类  \n     不会侵入你自己的原有代码,详细看demo \n     \n     \n    [self getpanPushToViewController:^UIViewController * _Nonnull{\n        //这个应该是你的个人主页控制器\n        Type4ViewControllerThird *vc = [[Type4ViewControllerThird alloc] init];\n        return vc;\n    }];\n    \n\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/panPush.gif)\n\n## 4.抖音视频播放转场动画(github上其它demo并未做到和抖音一样,或者耦合度太高需要侵入你的代码,让你改很多东西才能实现,我自己封装了一个,只需将TTCTransition文件夹拖入你的项目,然后添加两行代码就行,完全不需要侵入修改你原有的代码. 希望大佬们多提意见)\n一行或者两行代码实现抖音视频播放转场动画,支持push和present,两行代码脑残式操作,自己看下代码\n首先将TTCTransition文件夹拖入你的项目中,\n#import \"TTCTransitionDelegate.h\"\n\n第一行:假设需要转场的控制器叫myVC,  那么调用myVC.ttcTransitionDelegate = [[TTCTransitionDelegate alloc] init];\n\n第二行:抖音的转场动画效果是一个小窗口cell扩大到全屏播放界面,所以需要将小窗口cell传给我,不传也可以,默认就是从中心开始扩大,myVC.ttcTransitionDelegate.smalCurPlayCell = cell\n\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/TTCTransition.gif)\n\n\n\n## 5.模仿抖音播放小视频功能;(这个功能网上有很多其它更优秀的Demo,所以大家可能需求不大)\n### (1).支持边下边播\n### (2).支持视频预加载\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/smallVideoImage.gif)\n\n## 6.和铃声多多一样,支持上传音频到库乐队(GarageBand)直接设置手机铃声\n鉴于之前有好几位iOS开发者通过简书找到我, 都是公司需要做这个功能但是不知道怎么实现, 这个小众功能我做的时候网上没有任何资料,当时我自己也是迷迷糊糊琢磨了一些时间才弄出来的. 今天把这个功能实现方法写出来把,希望能帮到大家.如果确实解决了您的燃眉之急,希望能点一个star,感谢.\n\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/GarageBandImage.gif)\n\n\n## 7.多列表嵌套分页滚动, header悬浮\n### 该功能共有两个类:1.TCViewPager(用于处理列表分页)  2.TCNestScrollPageView(用于处理嵌套header滚动悬浮)\n一开始铃声多多中只有分页功能，没有需要加入headerView悬浮嵌套的功能，所以就只写了TCViewPager，用于处理分页功能，后来个人主页需要做成headerView悬浮的效果，但是我又不想修改之前TCViewPager已经写好的代码，而且肯定有其他开发者已经有了自己的分页控件（改样式改代码肯定是改自己的代码比较熟悉比较快），只想添加一个headerView悬浮功能，不想用我的TCViewPager，所以我就索性写了TCNestScrollPageView用于处理嵌套headerView滚动悬浮，把TCNestScrollPageView和TCViewPager完全拆开。\n如果你已经有了自己的分页控件,但是想在其基础上再添加header悬浮滚动的功能,那么你就只需要使用TCNestScrollPageView即可,不需要用到TCViewPager.用法非常非常简单,直接参照demo（github上有一些一两千star的项目我觉得无论是代码还是使用都有丢丢复杂，对新手不太友好，看起来一脸懵逼，想做一些改动都无从下手，TCNestScrollPageView和TCViewPager相对来说思想思路和代码都很简单，想做一些修改看看代码就能改，有需要的就用起来吧）\n### (1).简单分页\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/分页效果.gif)\n### (2).headerView随时变动\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/headerView随时变动.gif)\n### (3).headerView吸顶\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/headerView吸顶.gif)\n### (4).改变headerView高度\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/改变headerView高度.gif)\n### (5).headerView不吸顶,下拉变大\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/headerView不吸顶,下拉变大.gif)\n### (6).Header滚动延续(实现方法和网上其它的不太一样,可以看看)\nhttps://github.com/tangtiancheng/DouYinComment/archive/refs/tags/0.0.7.zip 新版没了,老版本有实现代码\n\n\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/scrolContinue.gif)\n### (7).标签编辑功能\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/editTag.gif)\n### (8).铃声多多音乐播放界面,(类似豆瓣电影主页)\n![image](https://github.com/tangtiancheng/ttcgif/blob/master/gif/DDMusic.gif)\n\n另外还有其他的效果自己去看demo,使用起来很简单, 我写这些东西都是尽力朝着让使用者一两行就能用, 不侵入使用者的代码,实现原理也不难,自己去看代码也肯定能看懂 (好用请给个star,谢谢)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftangtiancheng%2FDouYinComment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftangtiancheng%2FDouYinComment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftangtiancheng%2FDouYinComment/lists"}