I have an button on UIT开发者_高级运维oolbar. i need to display another toolbar on clicking that button and upon same button click , it must be hide. I am able to display toolbar but how to hide the toolbar on same button click?? help me!!
Use the tag property of your button.
if(myButton.tag = 0) // means Do hide 
{
    myToolBar.hidden = YES;
    myButton.tag = 1;
}
else 
{
  myToolBar.hidden = NO;
  myButton.tag = 0;
}
How do you hide? If you use hidden: YES just change it to hidden: NO
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论