Three20 style 设置的一些例子

Three20 style 设置的一些例子

 

需要的前置知识:

http://mattvague.com/three20-stylesheets-tutorial

http://mattvague.com/three20-tttableitem-tutorial

 

如何改 变导航栏 颜色:

可以直接改:

self.navigationBarTintColor = [UIColor blackColor];

在于,每个页面 都得改一遍。

 

也可以使用全局的style sheet:

-(UIColor *) navigationBarTintColor {

return RGBCOLOR (20 , 20 , 30 );

}

 

设置 LauncherView item的字体和 颜色 :

- (TTStyle *)launcherButton:(UIControlState )state {

return

[TTPartStyle styleWithName :@"image" style :TTSTYLESTATE (launcherButtonImage:, state) next :

[ TTTextStyle styleWithFont:[ UIFont systemFontOfSize: 11 ] color: RGBCOLOR ( 0 , 0 , 0 )

minimumFontSize: 11 shadowColor: nil

shadowOffset: CGSizeZero next: nil ]];

}

 

设置 tabBar的背景色:

- (TTStyle *)tabBar {

return

[ TTLinearGradientFillStyle styleWithColor1:[ UIColor colorWithRed: 0.737 green: 0.82 blue: 0.906 alpha: 1.0 ]

color2:[ UIColor colorWithRed: 0.859 green: 0.894 blue: 0.929 alpha: 1.0 ]

next :nil ];

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值