tags:

views:

149

answers:

1

I have class A which has toolbar(created progmatically) & with property(nonatomic,retain) .In another class B i want to make toolbar of class A hidden. How to do that ? i am using

ClassA *aobj=[[classA alloc] init];
[aobj.toolbar sethidden:yes];

but it isn't working? please give me solution.

+2  A: 

If this is from a view controller then you should probably do something like this:

[self.navigationController setToolbarHidden: YES animated: YES];
St3fan
I guess most people are coding to the 3.x SDK by now, but it's worth noting that this wouldn't work with older versions of iPhone OS.
Stephen Darlington
no..... the toolbar in question is in class A while coding is in class B. This is nt what i was looking for.
saurabh