Solved

Get the name of the UITextView the user clicked in?

Posted on 2010-08-16
2
602 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Suggested Courses

734 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