Thursday, February 10, 2011

Customize Tabbar

CGRect frame = CGRectMake(0, 0, 480, 50);
    UIView *v = [[UIView alloc] initWithFrame:frame];
    UIImage *i = [UIImage imageNamed:@"btm-bar.png"];
    UIColor *c = [[UIColor alloc] initWithPatternImage:i];
    // UIColor *c = [UIColor blueColor];
    v.backgroundColor = c;
   
    [appdeleg.tabBarControllerr.tabBar insertSubview:v atIndex:0];

No comments:

Post a Comment