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

  • SEARCH
  • Home
  • 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 7866023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:15:50+00:00 2026-06-03T00:15:50+00:00

When i used this code in iPhone 4.3 simulator , i got this error

  • 0

When i used this code in iPhone 4.3 simulator , i got this error but when run it on iPhone 5 simulator ,it’s worked without errors .

Code

    UITabBarController *tabB = [[UITabBarController alloc] init];
tabB.tabBar.tintColor=[UIColor colorWithRed:124.0/255.0 green:150.0/255.0 blue:32.0/255.0 alpha:1.0];

tabB.tabBar.selectedImageTintColor=[UIColor colorWithRed:187.0/255.0 green:255.0/255.0 blue:38.0/255.0 alpha:1.0];            
tabB.viewControllers = [NSArray arrayWithObjects:hc,bt, nil];
[self.navigationController pushViewController:tabB animated:YES];

Error

-[UITabBar setTintColor:]: unrecognized selector sent to instance 0x78787c0
2012-04-24 10:59:46.776 welcomeKidsWebsite[10357:12203] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITabBar setTintColor:]: unrecognized selector sent to instance 0x78787c0'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x01bcd5a9 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x01d21313 objc_exception_throw + 44
    2   CoreFoundation                      0x01bcf0bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
    3   CoreFoundation                      0x01b3e966 ___forwarding___ + 966
    4   CoreFoundation                      0x01b3e522 _CF_forwarding_prep_0 + 50
    5   welcomeKidsWebsite                  0x0005ac8e -[KidsWelcomeViewController GotoBooks:] + 622
    6   UIKit                               0x00e1f4fd -[UIApplication sendAction:to:from:forEvent:] + 119
    7   UIKit                               0x00eaf799 -[UIControl sendAction:to:forEvent:] + 67
    8   UIKit                               0x00eb1c2b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 527
    9   UIKit                               0x00eb07d8 -[UIControl touchesEnded:withEvent:] + 458
    10  UIKit                               0x00e43ded -[UIWindow _sendTouchesForEvent:] + 567
    11  UIKit                               0x00e24c37 -[UIApplication sendEvent:] + 447
    12  UIKit                               0x00e29f2e _UIApplicationHandleEvent + 7576
    13  GraphicsServices                    0x02528992 PurpleEventCallback + 1550
    14  CoreFoundation                      0x01bae944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
    15  CoreFoundation                      0x01b0ecf7 __CFRunLoopDoSource1 + 215
    16  CoreFoundation                      0x01b0bf83 __CFRunLoopRun + 979
    17  CoreFoundation                      0x01b0b840 CFRunLoopRunSpecific + 208
    18  CoreFoundation                      0x01b0b761 CFRunLoopRunInMode + 97
    19  GraphicsServices                    0x025271c4 GSEventRunModal + 217
    20  GraphicsServices                    0x02527289 GSEventRun + 115
    21  UIKit                               0x00e2dc93 UIApplicationMain + 1160
    22  welcomeKidsWebsite                  0x000024ac main + 188
    23  welcomeKidsWebsite                  0x000023e5 start + 53
  • 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-06-03T00:15:52+00:00Added an answer on June 3, 2026 at 12:15 am

    A good way to make this version independent is:

     if ([tabBarController.tabBar respondsToSelector:@selector(setTintColor:)]) {
            [tabBarController.tabBar setTintColor:color];
     }
    

    In IOS 5 this will set the tabbar tintcolor and in lower versions it wont crash

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used this code previously in netbeans 6.9.1 but it does not seem to
I have used this code for extracting urls from web page.But in the line
I successfully used this code within a powerpoint odule, but when I move it
I want to play a video in my iPhone app. I used this code:
I used this code to print the current page: <form> <input type=button value=Print onClick=window.print();
I used this code in my Android application: import org.apache.http.client.methods.HttpPost; ... HttpClient httpclient =
I used this code for sending and returning result. <script type=text/javascript> $(document).ready(function() { $('.special').click(function(){
I used this code in my users views and had no trouble: <% if
I used this code to access the Specific XML under the SharePoint Mapped Folder;
I used this code: const char *propName = property_getName(property); NSString *propertyName = [NSString stringWithCString:propName];

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.