高仿百度糯米

移动开发
高仿百度糯米iOS,版本号:5.13.0;高仿百度糯米iOS采用以storyboard创建界面为主的方式来开发,跟官方的纯代码+少量的xib方式以作区别。最新代码可参考我的GitHub链接:https://github.com/lookingstars/nuomi 如果你觉得不错,欢迎star哦。gif图1M多大小,当前网站上传不了,GitHub链接下有gif图.

源码简介:高仿百度糯米iOS,版本号:5.13.0;高仿百度糯米iOS采用以storyboard创建界面为主的方式来开发,跟官方的纯代码+少量的xib方式以作区别。最新代码可参考我的GitHub链接:https://github.com/lookingstars/nuomi 如果你觉得不错,欢迎star哦。gif图1M多大小,当前网站上传不了,GitHub链接下有gif图.

源码效果:

源码片段:

  1. - (void)initTabBarItem { 
  2.     UITabBar *tabbar = self.tabBar; 
  3. //    self.tabBarController.tabBar; 
  4.     UITabBarItem *item0 = [tabbar.items objectAtIndex:0]; 
  5.     UITabBarItem *item1 = [tabbar.items objectAtIndex:1]; 
  6.     UITabBarItem *item2 = [tabbar.items objectAtIndex:2]; 
  7.     UITabBarItem *item3 = [tabbar.items objectAtIndex:3]; 
  8.     UITabBarItem *item4 = [tabbar.items objectAtIndex:4]; 
  9.       
  10.     item0.selectedImage = [[UIImage imageNamed:@"icon_tab_shouye_highlight"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 
  11.     item0.image = [[UIImage imageNamed:@"icon_tab_shouye_normal"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 
  12.     item1.selectedImage = [[UIImage imageNamed:@"icon_tab_fujin_highlight"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 
  13.     item1.image = [[UIImage imageNamed:@"icon_tab_fujin_normal"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 
  14.       
  15.     item2.selectedImage = [[UIImage imageNamed:@"tabbar_voice_icon"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 
  16.     item2.image = [[UIImage imageNamed:@"tabbar_voice_icon"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 
  17.     item2.imageInsets = UIEdgeInsetsMake(60, -60);//注意这里的两个值 
  18.       
  19.     item3.selectedImage = [[UIImage imageNamed:@"tab_icon_selection_highlight"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 
  20.     item3.image = [[UIImage imageNamed:@"tab_icon_selection_normal"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 
  21.     item4.selectedImage = [[UIImage imageNamed:@"icon_tab_wode_highlight"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 
  22.     item4.image = [[UIImage imageNamed:@"icon_tab_wode_normal"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; 
  23.     //改变UITabBarItem字体颜色 
  24.     [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:navigationBarColor,UITextAttributeTextColor, nil] forState:UIControlStateSelected]; 

下载地址:http://down.51cto.com/data/2111750

责任编辑:倪明 来源: devstore
相关推荐

2015-07-21 14:19:49

百度开放API

2012-07-16 14:43:32

silverlight

2013-08-22 17:08:50

2014-07-25 17:12:39

数据库WOT2014MongoDB

2014-12-17 14:44:25

有线无线一体化

2011-06-29 16:02:40

jQuery

2017-09-12 17:05:02

AndroidLoading客户端

2012-06-18 16:29:48

Web

2012-06-18 16:37:41

Web

2012-06-19 13:25:15

Web

2012-06-19 13:32:23

Web

2012-05-28 22:51:53

百度

2018-09-06 18:37:45

百度云

2015-05-15 15:10:16

红包

2022-09-21 07:23:43

百度糯米浏览器优酷

2012-06-19 13:45:57

Web

2016-03-25 11:18:23

中华网

2020-12-03 06:13:46

iOS

2022-03-02 11:04:45

百度业务盈利

2011-06-01 17:40:29

百度收录
点赞
收藏

51CTO技术栈公众号