I've run into a similar problem before. I resolved it by setting the tint color immediately before showing the toolbar in code. See if that works for you.
Up vote 0 down vote favorite share g+ share fb share tw.
I have the following code: - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = super initWithNibName:nibNameOrNil bundle:nibBundleOrNil; if (self) { // Custom initialization webControlsToolbar_ = UIToolbar alloc init; self. WebControlsToolbar_ setTintColor:UIColor colorWithRed:246.0/255.0 green:246.0/255.0 blue:246.0/255.0 alpha:1; Any idea why the color is still solid black? In my view did load I added the toolbar: self.
WebControlsToolbar_. Frame = CGRectMake(0, self.view. FrameHeight - self.
WebControlsToolbar_. FrameHeight + 1.0, self.view. FrameWidth, self.
WebControlsToolbar_. FrameHeight); self. View addSubview:self.
WebControlsToolbar_; iphone objective-c ios ipad link|improve this question edited Feb 23 at 20:33 asked Feb 23 at 20:28adit1,305118 74% accept rate.
– Aaron Feb 23 at 20:30 edited the code above, the double initialization was just a typo – adit Feb 23 at 20:33 Is self. WebControlsToolbar_ an IBOutlet? – Aaron Feb 23 at 20:36 yes, but I removed that now and still doesn't work – adit Feb 23 at 20:41 Any updates on the problem?
This really intrigues me, I don't know what might be going on :S You can try to re-start that class because that's the way to set the tintColor of a tool bar. – El Developer Feb 237 at 0:36.
You have to change this attribute in the viewDidLoad method: -(void)viewDidLoad{ super viewDidLoad; //Custom initialization self. WebControlsToolbar_ setTintColor:UIColor colorWithRed:246.0/255.0 green:246.0/255.0 blue:246.0/255.0 alpha:1; }.
Did that and didn't work as well – adit Feb 23 at 20:49.
I find it easier to set the background color of a button, label, etc. exactly as I want with the utility bar, then create an outlet called say, myOutlet, and do this: self. WebControlsToolbar_ setTintColor:myOutlet.backgroundColor.
The issue is at the line self. WebControlsToolbar_. Frame = CGRectMake(0, self.view.
FrameHeight - self. WebControlsToolbar_. FrameHeight + 1.0, self.view.
FrameWidth, self. WebControlsToolbar_. FrameHeight); Try to NSLog a self.
WebControlsToolbar_. FrameHeight property and you should see that is zero after UIToolBar new; Use a constant height instead.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.