原理就是将tabbar移出显示区

-(void)hideSystemTabBar:(UITabBar*) tabbarcontroller {

[UIView beginAnimations:nil context:NULL];//动画效果,可以不用

[UIView setAnimationDuration:0.1];

for(UIView* view in tabbarcontroller.subviews)

{

if([view isKindOfClass:[UITabBarclass]])

{

[view setFrame:CGRectMake(view.frame.origin.x,WCGLOBAL_SCREEN_SIZE.height, view.frame.size.width, view.frame.size.height)];

}

else

{

[view setFrame:CGRectMake(view.frame.origin.x, view.frame.origin.y, view.frame.size.width,WCGLOBAL_SCREEN_SIZE.height)];

}

}

[UIView commitAnimations];

}

-(void)showSystemTabBar:(UITabBarController*) tabbarcontroller {

//    [UIView beginAnimations:nil context:NULL];

//    [UIView setAnimationDuration:0.5];

for(UIView* view in tabbarcontroller.view.subviews)

{

NSLog(@"%@", view);

if([view isKindOfClass:[UITabBarclass]])

{

[view setFrame:CGRectMake(view.frame.origin.x,WCGLOBAL_SCREEN_SIZE.height - WCTabBarHeight, view.frame.size.width, view.frame.size.height)];

}

else

{

[view setFrame:CGRectMake(view.frame.origin.x, view.frame.origin.y, view.frame.size.width,WCGLOBAL_SCREEN_SIZE.height - WCTabBarHeight)];

}

}

//    [UIView commitAnimations];

}

最新文章

  1. 【原】JAVA开发环境搭建
  2. Bootstrap框架(基础篇)
  3. PAT 1003. 我要通过!(20) JAVA
  4. (译文)MVC通用仓储类
  5. [NOIP2014] 提高组 洛谷P1941 飞扬的小鸟
  6. js日历插件 中文、英文日历
  7. php数组的创建及操作
  8. 51nod1313 完美串
  9. C++ 排序函数 sort(),qsort()的含义与用法 ,字符串string 的逆序排序等
  10. Palindrome(Manacher)
  11. TP框架 基础1
  12. RabbitMQ和SpringBoot的简单整合列子
  13. 从零开始学习前端JAVASCRIPT — 3、JavaScript基础string字符串介绍
  14. Android开发技巧——高亮的用户操作指南
  15. eclipse JVM 性能调优
  16. .net core DI 注册 Lazy<> 类型
  17. JS中var、let、const区别? 用3句话概括
  18. CGPoint,CGSize,CGRect转NSString以及CGRect的一些便捷实用方法
  19. 【adaboost】周志华
  20. kubernetes 实战6_命令_Share Process Namespace between Containers in a Pod&Translate a Docker Compose File to Kubernetes Resources

热门文章

  1. Maven项目下java.lang.ClassNotFoundException的解决方法
  2. iOS8后core location框架启动定位服务的步骤
  3. Windows7+VS2010下OpenGL的环境配置
  4. BZOJ 4518 征途
  5. sqlite实现oracle的rownum功能
  6. Mysql游标阻止执行最后一次
  7. Java(五)
  8. 也谈谈AlphaGo
  9. Lua IO库详解
  10. easyui datagrid 合并单元格