when i am pressing my UIButton ,(i did not release my mouse button),i want to change title? i tried touchupinside through XIB.but it was called after i released my mouse button. i tried both land also all states....? [sButton setTitle:@"hai" forState:UIControlStateNormal]; [sButton setTitle:@"hai" forState:UIControlStateHighlighted];
+1
A:
The Control Events documentation will list all of the events you can subscribe to for controls (in this case, your UIButton
). The one you want is UIControlEventTouchDown
. But the problem with your requirement is that pushing the button covers the screen with the user's finger and I wonder whether changing the title will really be beneficial.
Nick Bedford
2009-10-08 05:49:21
its like combo box ,with big width
Mikhail Naimy
2009-10-08 05:52:24