简体   繁体   中英

How can we detect touch up or click events in textview in IPhone

In IPhone?

Do we need a button control instead for that?

How can we pull that one up?

You can handle touch events directly in your view controller but this is usually a lot of effort. If you use a button with the type as custom it will look the same as a textview.

子类UITextView并实现-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM