Is it possible to click and drag the title from one UIButton and drop it into the title of another UIButton?
I have two UIButton's and I want to be able to have the user click one of the UIButton's and drag it over to anoth开发者_运维技巧er UIButton and have the title of the UIButton moved from the first UIButton to the second one. Is that possible? Thanks.
The title is an element of UIButton, so you can't use any predefined methods to do this. You'd have to create custom implementation where you added a draggable UILabel on touch, then set the button's title to match on release - or something like that.
I have created another answer that will at least get you on your way, it implements the press, the drag, and the up events for a button, where you are trying to recognize another button that you have dragged to!!!
Xcode iOS push down button and drag then up on a second button
Look at the answer provided by me!
精彩评论