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 8531413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:28:44+00:00 2026-06-11T09:28:44+00:00

Using MonoTouch 5.4 on new XCode and iOS 6.0 Old ViewController In TabBarController code:

  • 0

Using MonoTouch 5.4 on new XCode and iOS 6.0

Old ViewController In TabBarController code:

this.TabBarItem.BadgeValue = "5";

No longer works.

New code, changing to this does work:

this.TabBarController.TabBar.Items[theIndexOfTab].BadgeValue = "5";

By not work I mean the badge does not appear, the value is just ignored in the old case.

  • 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-11T09:28:45+00:00Added an answer on June 11, 2026 at 9:28 am

    I think this is normal. Maybe your code was changed / refactored before the update ?

    TabBarItem is defined in UIViewController and represent the tab bar item of this view controller.

    So this.TabBarItem is the tab bar item of this this view controller, e.g. I used a UITabBarController in my code (let’s call it parent).

    this.TabBarController.TabBar.Items[x] would represent the tab bar item of one of the child view controller of this parent.

    So when I create child1 and child2 (both instances of UIViewController) and assign them to parent.ViewControllers we get three instances of UITabBarItem (one for parent, one for each child) – but only two of them (the children will ever be visible).

    E.g. from logging the handle values

    2012-09-14 20:13:24.092 test1[47917:1507] parent.TabBarItem.Handle = 291086496
    2012-09-14 20:13:24.094 test1[47917:1507] parent.TabBar.Items [0].Handle = 218412640
    2012-09-14 20:13:24.094 test1[47917:1507] parent.TabBar.Items [1].Handle = 160885040
    2012-09-14 20:13:24.095 test1[47917:1507] child1.TabBarItem.Handle = 218412640 
    2012-09-14 20:13:24.096 test1[47917:1507] child2.TabBarItem.Handle = 160885040
    

    So I can either do:

    child1.TabBarItem.BadgeValue = "5"; // or
    parent.TabBar.Items[0].BadValue = "5";
    

    to get the same behaviour. However changing the parent.TabBarItem won’t be visible anywhere (at least not in my case where this is the RootViewController of my test application).

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

Sidebar

Related Questions

I'm new in monotouch and I'm having a problem using NavigationViewController: In the FinishedLauching
I am trying to implement a Settings dialog for iOS using MonoTouch and the
When i first started using monotouch i found a page with some code samples
I'm quite new at using Monotouch and I want to make an app that
I have the following code example to demonstrate a simple MonoTouch.Dialog table using MessageElement
This Monotouch code below will not cause an exception, but it also won't show
I'm using MonoTouch. When I push a new controller onto the stack of a
I've embedded some C# code into an iphone objective-c app using monotouch. I'm able
I have a MonoTouch project using some code I share with a Windows Phone
Monotouch 5.0.2. Running the simple code below I get this in the output panel:

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.