Solved

Get the name of the UITextView the user clicked in?

Posted on 2010-08-16
2
601 Views
Last Modified: 2013-11-25
I have a view with three different UITextView's... aTextView bTextView and cTextView... When a user clicks inside of one of these, I would like to return which one they clicked, either a, b, or c.  Can this be accomplished?

Thanks!
0
Comment
Question by:TWB_Systems
2 Comments
 
LVL 5

Expert Comment

by:xdomains
ID: 33451654
Here is how you manage text views.

http://developer.apple.com/iPhone/library/documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/ManageTextFieldTextViews/ManageTextFieldTextViews.html

Look at the delegates for textviews & textFields - textFieldShouldBeginEditing, textViewShouldBeginEditing:
0
 
LVL 33

Accepted Solution

by:
pgnatyuk earned 500 total points
ID: 33451697
Like for any other view: add a tag and then in the action methods check if (sender.tag == 1) ....
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question