iphone – UIButtons setting tags – Education Career Blog

I have two buttons in my view. When I sent the tag value of one of them in Interface Builder they stop working. I get EXC_BAD_ACCESS error.

,

Have you linked the button in IB to an actual field? If not, then when you access the field it won’t actually refer to the button.

,

Set the button tag in code programmatically. then in the method which calls the button if(button.tag== sender tag){}

,

Before posting please make sure that you describe your problem clearly.
Make sure all the wiring’s are perfect,and look at your your console.
There will be some hints about what is exactly going wrong.

Leave a Comment