-2

Is there any way of knowing when a text-box has been clicked on so that this can trigger an event? This may not be the best way to do it but I want to animate the text-box to a different part of the screen when it is clicked and then return to its original position when finished.

4

1 回答 1

0

如果您的问题与 iOS 有关,请为 UITextField 设置委托,并在下面的 delegaqte 方法中添加您的代码。

- (void)textFieldDidBeginEditing:(UITextField *)textField

设置委托在此处输入图像描述

于 2012-12-20T06:18:24.297 回答