Adding a property to all of my UIControls
问题 Im trying to make it so that every single UIControl in my application ( UIButton , UISlider , etc) all have special extra properties that I add to them. I tried to accomplish this by creating a UIControl Category and importing it where needed but I have issues. Here is my code. My setSpecialproperty method gets called but it seems to be getting called in an infinite loop until the app crashes. Can you tell me what Im doing wrong or suggest a smarter way to add a property to all of my