Ashish Gogna
Ashish Gogna

Reputation: 59

How to change tabbaritem image on a button click?

I have a UIButton, which when clicked, will change the tabbaritem image of that view and also, the whole view will have to be replaced with another view...

How can i be able to do this ?

Please help !

Thanks,

Upvotes: 1

Views: 99

Answers (1)

Tcacenco Daniel
Tcacenco Daniel

Reputation: 445

Hello you can use something like that:

- (IBAction)setRedTint:(id)sender {
UIWindow *keyWindow = [[[UIApplication sharedApplication] delegate] window];
[keyWindow addSubview:imageView];

}

Upvotes: 1

Related Questions