Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3967900
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:46:34+00:00 2026-05-20T03:46:34+00:00

UITabBar *frameTabBar = [[UITabBar alloc] initWithFrame:CGRectMake(0, 698, 1024, 70)]; UITabBarItem *frameTabBarItem1 = [[UITabBarItem alloc]

  • 0
UITabBar *frameTabBar = [[UITabBar alloc] initWithFrame:CGRectMake(0, 698, 1024, 70)];
UITabBarItem *frameTabBarItem1 = [[UITabBarItem alloc] initWithTitle:@"Fee" image:nil tag:0];
UITabBarItem *frameTabBarItem2 = [[UITabBarItem alloc] initWithTitle:@"Dev" image:nil tag:1];
NSArray *frameTabBarItemArray = [[NSArray alloc] initWithObjects:frameTabBarItem1,frameTabBarItem2,nil];
[frameTabBar setItems:frameTabBarItemArray];

But there isnt any Item displayed in my UITabBar.
What’s wrong with my code.
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T03:46:35+00:00Added an answer on May 20, 2026 at 3:46 am

    I’m sure that the items are there, you just can’t see them because you didn’t set an image and the labels are out of your visible frame.

    UITabBar *frameTabBar = [[UITabBar alloc] initWithFrame:CGRectMake(0, 698, 1024, 70)];
    

    698 + 70 = 768

    768 is the height of an iPad in landscape orientation. But, if there is a statusbar, the usable frame is 20 pixel smaller. And the 20 pixel are exactly the height that would hide your tab labels.

    So just subtract 20 pixel from the y position and you are good.

    UITabBar *frameTabBar = [[UITabBar alloc] initWithFrame:CGRectMake(0, 678, 1024, 70)];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to place UITabbar on iPhone window using CGRectMake. But I found that
I have a UITabBar with a number of UITabBarItem s. I've assigned a different
I have this code - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item What I am looking for
How can I remove a UITabBarItem from a UITabBar ? I haven't tried anything,
I have UITabBarController with UITabBar which has three UITabBarItem . Project is with storyboard.
In UITabBar it is possible to add a standard button by clicking on the
I have a UITabBar + UINavigationController application which often needs data from the internet.
I have a UITabBar in the detail view of my navigation based application. I
I have a UITabBar in my application with three tab bar items. At certain
I have an UITabBar based iPhone app with 4 different UIWebViews under every tab.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.