Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Q-A]使用方法询问:设置的backgroundImage不显示 #579

Closed
alexiiio opened this issue Dec 3, 2021 · 0 comments
Closed

[Q-A]使用方法询问:设置的backgroundImage不显示 #579

alexiiio opened this issue Dec 3, 2021 · 0 comments
Assignees
Labels

Comments

@alexiiio
Copy link

alexiiio commented Dec 3, 2021



My issue:

    self.tabBar.backgroundImage = [UIImage imageNamed:@"666"];

设置backgroundImage不显示,设置0个tabBarItem时显示,设置多个item时就不显示,只是给item设置了图片,用了最基本的代码,其他没做:

  NSDictionary *firstTabBarItemsAttributes = @{
//                                                CYLTabBarItemTitle : @"首页",
                                                CYLTabBarItemImage : @"home_normal",  /* NSString and UIImage are supported*/
                                                CYLTabBarItemSelectedImage : @"home_highlight",  /* NSString and UIImage are supported*/
                                                };
   NSDictionary *secondTabBarItemsAttributes = @{
//                                                 CYLTabBarItemTitle : @"鱼塘",
                                                 CYLTabBarItemImage : @"fishpond_normal",
                                                 CYLTabBarItemSelectedImage : @"fishpond_highlight",
                                                 };
    NSDictionary *thirdTabBarItemsAttributes = @{
 //                                                 CYLTabBarItemTitle : @"鱼塘",
                                                  CYLTabBarItemImage : @"account_normal",
                                                  CYLTabBarItemSelectedImage : @"account_highlight",
                                                  };

求解!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants