Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

fenrus110

macrumors regular
Original poster
Mar 24, 2008
142
0
When you tap on a UITextView area, the keyboard appears and the delegates respond.

But when you hold down on the UITextView area, the keyboard appears but the delegates don't respond.

Big problem since I put my "Done" button in the top when the didBegin delegates are called

EDIT: in the simulator, shouldBegin and didBegin both do not work. But in the Device, only shouldBegin is called.

argh, UITextView just seems too buggy to use. But what else can we use for multi line editing? I've also had an issue where the text doesn't appear until I touch on it, even though I did set the text to something.
 
UITextView delegates seem to behave very strangely.

On the device, when you touch it, ShouldBegin gets called twice while DidBegin is called once. If you hold down on it, ShouldBegin is called once.

When you resignFirstResponder, ShouldEnd gets called FOUR times while DidEnd gets called two times.

This is trouble some since the view often needs to be rearranged when these delegates are called (so the keyboard doesn't block the view), but if these are called two or four times, it can be troublesome.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.