So the other day I made a class, MyButton, that extended UIButton and started to update the current UIButtons in my project to use the new button. After updating all the buttons in code and changing the class of the buttons in the XIB files, I loaded up the application in the simulator to test everything out.
When I came to a view that used the new MyButton class, one that was initialized in the XIB file, and tried to use one of the new methods, I got this error “UIAccessibility Returning Failover: -[UIButton:”. So to the debugger I went. I placed a break point where this method was being called to make sure the button being created was of type MyButton. It wasn’t. A UIButton was still being used and of course a regular UIButton doesn’t have any of the methods in MyButton available.
I thought to myself, how could this be? I have updated all of my class references in code and in the XIB files. I even went through again and double checked and triple checked. Googling around didn’t turn anything up. So after debugging a bit more I decided to re-hook up the Referencing Outlets for all the buttons to the Files Owner, and voila, everything was working. It seems that this is a step I overlooked when changing the class for all the buttons. Hope this helps anyone that comes across this.
Like many traditional English styles, the origins of Porter are murky and fraught with conflicting stories. Legend has it that the Porter was born in a time when mixing beers in pubs to achieve a desired flavor was quite common. This required the publican to scurry back and forth between…