开发者

Making toolbar hidden

开发者 https://www.devze.com 2022-12-20 18:16 出处:网络
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开发者_如何学

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];
0

精彩评论

暂无评论...
验证码 换一张
取 消