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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:03:25+00:00 2026-05-21T14:03:25+00:00

How can i define someViewIWantToDisableOtherFor and anotherViewIWantDisabled in the following code? id currentlySelected; //This

  • 0

How can i define
someViewIWantToDisableOtherFor and
anotherViewIWantDisabled in the following code?

id currentlySelected; //This will hold the address of the selected view
id dontAllowSelection; //This will hold the address of the Denied view


- (BOOL)tabBarController:(UITabBarController *)tabBarControllers shouldSelectViewController:(UIViewController *)viewController
{
    if (dontAllowSelection != nil &&             
         dontAllowSelection == viewController)   
    {
        return NO;
    }
    currentlySelected = viewController;

    if (currentlySelected == someViewIWantToDisableOtherFor)
    {
        dontAllowSelection = anotherViewIWantDisabled; 
    }
    else
    {
        dontAllowSelection = nil; 
    }

    return YES;
}
  • 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-21T14:03:26+00:00Added an answer on May 21, 2026 at 2:03 pm

    Not enough information. You’re asking how to get pointers to two views, but those views could come from anywhere. The view controller might have them already as IBOutlets, or it might find them using their tag value, or the user might touch one or both of them…

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

Sidebar

Related Questions

I can define icon for a jquery ui button in code like this; $(
I can define default value in domain by this way : class ProcessingPriority {
In core.php I can define Configure::write('Routing.admin', 'admin'); and /admin/controller/index will work. but if I
In c\c++ can define: #ifndef <token> /* code */ #else /* code to include
In Python I can define a function as follows: def func(kw1=None,kw2=None,**kwargs): ... In this
We can define a constant like define(aconstant','avalue'); Can't we define array in this fashion
I can define an event like this(declared function): MyElement.Keyup +=MyDeclaredFunction I can also define
In C you can define constants like this #define NUMBER 9 so that wherever
I can define a delegate and write the query like this. Func<string, bool> filter
How can define a custom block like @for in Razor view? I read about

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.