Custom UITabBarController Background


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. CGRect frame = CGRectMake(0, 0, 480, 49);
  2. UIView *backView = [[UIView alloc] initWithFrame:frame];
  3. UIImage *backImage = [UIImage imageNamed:@"tabbar_bg.png"];
  4. UIColor *backColor = [[UIColor alloc] initWithPatternImage:backImage];
  5. backView.backgroundColor = backColor;
  6. [backColor release];
  7. [tabBarController.tabBar addSubview:backView];
  8. [backView release];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.