Solved

Get the name of the UITextView the user clicked in?

Posted on 2010-08-16
2
590 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

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…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
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 opening and reading files in the C programming language.

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now