{"id":13990231,"url":"https://github.com/targetcloud/baisibudejie","last_synced_at":"2025-04-09T10:08:45.620Z","repository":{"id":217782129,"uuid":"92918784","full_name":"targetcloud/baisibudejie","owner":"targetcloud","description":"百思不得姐4.5.6版本高仿","archived":false,"fork":false,"pushed_at":"2017-06-25T13:05:41.000Z","size":64318,"stargazers_count":332,"open_issues_count":2,"forks_count":88,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-02T08:11:15.894Z","etag":null,"topics":["baisi","baisibudejie","budejie","navigation","segment"],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/targetcloud.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":"2017-05-31T07:40:17.000Z","updated_at":"2024-12-25T12:11:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"1b46717a-40a7-41bf-bce2-14fb09271291","html_url":"https://github.com/targetcloud/baisibudejie","commit_stats":null,"previous_names":["targetcloud/baisibudejie"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/targetcloud%2Fbaisibudejie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/targetcloud%2Fbaisibudejie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/targetcloud%2Fbaisibudejie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/targetcloud%2Fbaisibudejie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/targetcloud","download_url":"https://codeload.github.com/targetcloud/baisibudejie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018060,"owners_count":21034048,"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":["baisi","baisibudejie","budejie","navigation","segment"],"created_at":"2024-08-09T13:02:29.200Z","updated_at":"2025-04-09T10:08:45.580Z","avatar_url":"https://github.com/targetcloud.png","language":"Objective-C","readme":"# baisibudejie\n百思不得姐4.5.6版本高仿\n\n你觉得赞，请Star\n\n##### 最新截图\n\n#### 1\n\u003cimg src=\"https://github.com/targetcloud/baisibudejie/blob/master/IMG_2174.PNG\" width = \"60%\" /\u003e\n\n#### 2\n\u003cimg src=\"https://github.com/targetcloud/baisibudejie/blob/master/IMG_2146.PNG\" width = \"60%\" /\u003e\n\n#### 3\n\u003cimg src=\"https://github.com/targetcloud/baisibudejie/blob/master/IMG_2147.PNG\" width = \"60%\" /\u003e\n\n### 运行效果\n\n![](https://github.com/targetcloud/baisibudejie/blob/master/1.gif) \n\n![](https://github.com/targetcloud/baisibudejie/blob/master/2.gif) \n\n### 点赞效果\n![](https://github.com/targetcloud/baisibudejie/blob/master/c.gif) \n\n### 随听模块效果\n![](https://github.com/targetcloud/baisibudejie/blob/master/b.gif) \n\n### 下拉刷新控件效果\n![](https://github.com/targetcloud/baisibudejie/blob/master/refresha.gif) \n\n本DEMO高仿最新版百思不得姐（4.5.6），运用了以下第三方框架\nDACircularProgress\nFLAnimatedImage\npop\n...\n\n另外自己定义了一个导航条控件TGSegment，自己的导航条segment与UINavigationController的导航条相互融合，效果见GIF图，这是很多流行的APP使用的功能，当向上滚动视图时，自己的导航条与UINavigationController的bar整合在一起， 同时融合的导航条（高度64）变得透明，这也是很多流行APP使用的全屏穿透并有透视效果，如果向下滚动视图时，并达到一定速度，那么segment又从UINavigationController的导航条中分离出来，此时的导航条效果是变高了，高出的部分即segment的高度（两者的相加的高度为：64+segment高度）。\n\n除了上面融合分离透视效果外，作者还加入了在segment的导航条最后的更多功能，点击更多按钮，即会弹出一个控制器，让你选择需要跳转的控制器，这也是很多流行APP使用的功能，如网易新闻等。\n\n本DEMO的数据都用Charles抓取，可能后面的版本的请求数据路径地址在将来会有变化，读者可以自行修改，或者告诉作者修改。\n\n在DEMO中，视频、声音、GIF播放均已实现，视频播放不弹出新的控制器进行播放，而是直接在cell上进行播放，GIF及图片缓存是使用自己的缓存实现的，另外评论界面中的语音播放功能也已经加入，同时支持语音、视频、图片三种评论类型。\n\n本DEMO中，也已经实现历史穿越功能，点击精华导航条右上角按钮即可穿越到旧版本，即呈现（全部 视频 声音 图片 段子）这5个控制器的界面。\n\n其他功能如自定义图片缓存、链式编程与masonry编程风格选择、启动页广告、引导页、pop动画、特色进度条、两张图片实现无限轮播、长文本伸缩展开等功能等待你去品味...\n\n使用TGSegment的代码如下\n若要显示更多按钮功能，那么.showMore(YES)传YES即可，\n是否循环滚动（第0个再向前，那么到最后一个;最后一个向后，那么到第0个）.circleScroll(YES)传YES即可，\n（本示例使用的链式编程语法）\n```objc\n@interface TGEssenceNewVC ()\n@property (nonatomic, weak) TGSementBarVC *segmentBarVC;\n@end\n\n@implementation TGEssenceNewVC\n\n-(UIStatusBarStyle)preferredStatusBarStyle{\n    return UIStatusBarStyleLightContent;//UIStatusBarStyleDefault;\n}\n\n- (TGSementBarVC *)segmentBarVC {\n    if (!_segmentBarVC) {\n        TGSementBarVC *vc = [[TGSementBarVC alloc] init];\n        [self addChildViewController:vc];\n        _segmentBarVC = vc;\n    }\n    return _segmentBarVC;\n}\n\n- (void)viewDidLoad {\n    [super viewDidLoad];\n    self.automaticallyAdjustsScrollViewInsets = NO;\n    self.segmentBarVC.segmentBar.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 35);\n    self.segmentBarVC.view.frame = self.view.bounds;\n    [self.view addSubview:self.segmentBarVC.view];\n    NSArray *items = @[@\"推荐\", @\"视频\", @\"图片\", @\"段子\",@\"排行\",@\"互动区\",@\"网红\",@\"社会\",@\"投票\",@\"美女\",@\"冷知识\",@\"游戏\"];\n    NSMutableArray* childVCs = [NSMutableArray array];\n    [childVCs addObject:[[TGRecommendedVC alloc] init]];\n    [childVCs addObject:[[TGVideoPlayVC alloc] init]];\n    [childVCs addObject:[[TGPictureVC alloc] init]];\n    [childVCs addObject:[[TGJokesVC alloc] init]];\n    [childVCs addObject:[[TGRankingVC alloc] init]];\n    [childVCs addObject:[[TGInteractVC alloc] init]];\n    [childVCs addObject:[[TGRedNetVC alloc] init]];\n    [childVCs addObject:[[TGSocietyVC alloc] init]];\n    [childVCs addObject:[[TGVoteVC alloc] init]];\n    [childVCs addObject:[[TGBeautyVC alloc] init]];\n    [childVCs addObject:[[TGColdKnowledgeVC alloc] init]];\n    [childVCs addObject:[[TGGameVC alloc] init]];\n    [self.segmentBarVC setupWithItems:items childVCs:childVCs];\n\n    [self.segmentBarVC.segmentBar updateViewWithConfig:^(TGSegmentConfig *config) {\n        config.selectedColor([UIColor lightTextColor])\n              .normalColor([UIColor lightTextColor])\n              .selectedFont([UIFont systemFontOfSize:14])\n              .normalFont([UIFont systemFontOfSize:13])\n              .indicateExtraW(8)\n              .indicateH(2)\n              .indicateColor([UIColor whiteColor])\n              .showMore(NO)//是否显示更多面板\n              .circleScroll(YES)//是否循环滚动，第0个再向前，那么到最后一个;最后一个向后，那么到第0个\n              .moreCellBGColor([[UIColor grayColor] colorWithAlphaComponent:0.3])\n              .moreBGColor([UIColor clearColor])\n              .moreCellFont([UIFont systemFontOfSize:13])\n              .moreCellTextColor(NavTinColor)\n              .moreCellMinH(30)\n              .showMoreBtnlineView(YES)\n              .moreBtnlineViewColor([UIColor lightTextColor])\n              .moreBtnTitleFont([UIFont systemFontOfSize:13])\n              .moreBtnTitleColor([UIColor lightTextColor])\n              .margin(18)\n              .barBGColor(NavTinColor)\n        ;\n    }];\n}\n@end\n```\n##### 截图\n#### 1\n\u003cimg src=\"https://github.com/targetcloud/baisibudejie/blob/master/IMG_2157.PNG\" width = \"60%\" /\u003e\n\n#### 2\n\u003cimg src=\"https://github.com/targetcloud/baisibudejie/blob/master/IMG_2158.PNG\" width = \"60%\" /\u003e\n\n#### 3\n\u003cimg src=\"https://github.com/targetcloud/baisibudejie/blob/master/IMG_2016.PNG\" width = \"60%\" /\u003e\n\n#### 4\n\u003cimg src=\"https://github.com/targetcloud/baisibudejie/blob/master/IMG_2017.PNG\" width = \"60%\" /\u003e\n\n#### 5\n\u003cimg src=\"https://github.com/targetcloud/baisibudejie/blob/master/IMG_2018.PNG\" width = \"60%\" /\u003e\n\n#### 6\n\u003cimg src=\"https://github.com/targetcloud/baisibudejie/blob/master/IMG_2019.PNG\" width = \"60%\" /\u003e\n\n#### 7\n\u003cimg src=\"https://github.com/targetcloud/baisibudejie/blob/master/IMG_2020.PNG\" width = \"60%\" /\u003e\n\n#### 8\n\u003cimg src=\"https://github.com/targetcloud/baisibudejie/blob/master/IMG_2022.PNG\" width = \"60%\" /\u003e\n\n#### 9\n\u003cimg src=\"https://github.com/targetcloud/baisibudejie/blob/master/IMG_2023.PNG\" width = \"60%\" /\u003e\n\n#### 10\n\u003cimg src=\"https://github.com/targetcloud/baisibudejie/blob/master/IMG_2028.PNG\" width = \"60%\" /\u003e\n\n### 如果您喜欢本项目,请Star \n\n欢迎关注我的[博客](http://blog.csdn.net/callzjy)\n","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftargetcloud%2Fbaisibudejie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftargetcloud%2Fbaisibudejie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftargetcloud%2Fbaisibudejie/lists"}