I have class A which has a toolbar (created programatically) with property(nonatomic,retain). In another class B I want to make the toolbar of class A hidden. How can I do that? I am using开发者_如何学JAVA
ClassA *aobj=[[classA alloc] init];
[aobj.toolbar sethidden:yes];
but it isn't working.
If this is from a view controller then you should probably do something like this:
[self.navigationController setToolbarHidden: YES animated: YES];
精彩评论