这个问题一直比较苦恼,网上很多方法实验下来都不是很好,今天终于解决了。
直接上代码:
CGRect rect = CGRectMake(0,
0, self.view.frame.size.width,
self.view.frame.size.height);
UIGraphicsBeginImageContext(rect.size);
CGContextRef...
分类:
移动开发 时间:
2015-07-19 00:12:09
阅读次数:
246
push页面时,可调用hidesBottomBarWhenPushed进行隐藏。第一步,我们需要一些图片:各个选项的图标和tabbar的背景图片,最后还要一个透明的1x1像素的图片。第二步,新建一个工程,在工程内建一个继承于UITabBarController的类。第三步,首先写一个方法,返回一个U...
分类:
其他好文 时间:
2015-07-17 13:39:15
阅读次数:
123
建立控制器 // 普通控制器
GroupViewController *groupVC = [[GroupViewController alloc] init];
SecondViewController *secondVC = [[SecondViewController alloc] init];
ThirdViewController *thirdVC = [[T...
分类:
其他好文 时间:
2015-07-16 16:53:27
阅读次数:
88
使用系统的tabbar解决图片的问题.
用sb使用系统的tabbar,弄好后发现图片始终是蓝色的,并不是原来的图片,后经上网查资料,问问同事,有了下面的这些代码,做个标记.
AppDelegate中
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObjec...
分类:
编程语言 时间:
2015-07-15 15:09:32
阅读次数:
134
StackoverFlow上看到的,通过继承UITabBarController创建自定义TabBarController。在原有TabBar的基础上添加一个背景层,在其基础上增加三个自定义按钮,通过设置按钮的背景图片及大小即可简单实现TabBar的自定义。// CustomTabBarContro...
分类:
其他好文 时间:
2015-07-13 16:03:55
阅读次数:
106
关于如何隐藏UITabbar的问题,曾经困扰过很多人。1,设为Hidden, 这种方法虽然将TabBar隐藏掉,但是下面是一片空白,没有起到隐藏的实际功效2,设置tabbar.frame = CGRectMake(0,480+);既将tabbar的frame 降低到屏幕一下。 这种方法也不行。其实i...
分类:
其他好文 时间:
2015-07-13 15:48:13
阅读次数:
111
有些按钮在底部SCrollView滑动的时候却是不动的,原理是加在self.view上,再用bringSubviewToFront 函数讲其层级调为最上层。导航栏位置的按钮就用[self.navigationController.navigationBar bringSubviewToFront:b...
分类:
其他好文 时间:
2015-07-13 15:48:02
阅读次数:
208
//自定义标签工具栏- (void) initTabBarView{// self.bottomView = [[UIView alloc]initWithFrame:CGRectMake(0, kScreenHeight-tabViewHeight-1,kScreenWidth, t...
分类:
其他好文 时间:
2015-07-13 11:52:34
阅读次数:
125
一、控制器部分
#import "JRTabBarConroller.h"
#import "JRTabBar.h"
@interface JRTabBarConroller ()
@property(nonatomic,weak) UIViewController * currentVC;
@end
@implementation JRTabBarConrol...
分类:
其他好文 时间:
2015-07-07 23:00:36
阅读次数:
187
<%@pagelanguage="java"contentType="text/html;charset=UTF-8"pageEncoding="UTF-8"%><%@pageimport="java.util.List"%><%@includefile="/htss/commonJsp/commonHeadJsp.jsp"%><%@pageimport="com.htss.shankHand.vo.AnnounVo"%><linkhref="<%=..
分类:
其他好文 时间:
2015-07-07 19:46:22
阅读次数:
97