Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-13-2011, 04:41 PM   #1 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 122
architectpianist is on a distinguished road
Default touchesEnded below UITextView

Hi,
So I have a UIView subclass object on the screen, and a subview of that is a UITextView. The UITextView takes up the entire view except for a 5px rim. I want touchesEnded to be called when I tap the view (when the text view isn't being edited), but instead it's not calling touchesEnded at all. Instead it's letting me edit the text view. Any ideas how I could call touchesEnded?
architectpianist is offline   Reply With Quote
Old 03-14-2011, 02:10 AM   #2 (permalink)
Registered Member
 
manojb's Avatar
 
Join Date: Jan 2011
Posts: 263
manojb is on a distinguished road
Smile

Quote:
Originally Posted by architectpianist View Post
Hi,
So I have a UIView subclass object on the screen, and a subview of that is a UITextView. The UITextView takes up the entire view except for a 5px rim. I want touchesEnded to be called when I tap the view (when the text view isn't being edited), but instead it's not calling touchesEnded at all. Instead it's letting me edit the text view. Any ideas how I could call touchesEnded?
check if the textview is the first responder, and resign it if true. use the alternative case check in touches began event... it really works...
__________________
U can not fail, until U Quit...

Manoj B
manojb is offline   Reply With Quote
Reply

Bookmarks

Tags
responder, touchesended, uitextview, uiview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 361
8 members and 353 guests
Absentia, akphyo, apatsufas, BinHex, fredidf, Kirkout, MarkC, mottdog
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:25 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0