How to drag a label and drop on UIToolbarItem in iphone
问题 I am facing problem to drag and drop UILabel . How to drag label(Move This) and drop on any one of UIToolBar item (i.e., 1 or 2 or 3 ...) that button title should change as label text. Check image for this question 回答1: Use custom button as a label and then use this code as : UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; [button addTarget:self action:@selector(btnTouch:withEvent:) forControlEvents:UIControlEventTouchDown]; button.tag = -1; button.titleLabel.text = @"Move