---
title: "How to detect specific UITextField after the user click?"  
description: "How to detect specific UITextField after the user click?"  
author: "Jayden Bell"  
published: 2015-12-20  
updated: 2015-12-20  
canonical: https://www.mindstick.com/forum/33758/how-to-detect-specific-uitextfield-after-the-user-click  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# How to detect specific UITextField after the user click?

I have four text [fields](https://www.mindstick.com/forum/159126/sql-query-for-all-tables-and-fields-in-an-oracle-db) in our [iPhone app](https://www.mindstick.com/articles/208914/4life-innovations-is-bracing-up-to-acquire-ios-13-for-iphone-app-development). **"Did End on Exit"** [event](https://www.mindstick.com/articles/167719/marquee-hire-benefits-of-event-lighting-hire-london) on each [text field](https://www.mindstick.com/forum/33753/how-to-get-value-from-text-field-on-button-click-in-ios) calls a single [action](https://www.mindstick.com/forum/155752/what-is-action-result-with-its-types). [Now](https://yourviews.mindstick.com/view/81402/it-s-liberals-vs-progressives-in-us-politics-now), how can I know which text-field is called the action.

Can any one tell me how can I [detect](https://www.mindstick.com/forum/1906/detect-when-cd-drive-was-closed) text-field from **[sender object](https://www.mindstick.com/forum/161/problem-in-getting-text-property-for-sender-object)** which is passed to the action?

## Replies

### Reply by Tarun Kumar

To find the specific [field](https://www.mindstick.com/forum/160867/does-mindstick-provide-training-for-field-marketing) from a bunch of IBOutlets that are connecting to our UITextFields,\
we can simply find them by comparing the sender object.\
Ex:

```
if(sender == textFieldName){   // here we can do any operation related to that specific textfield}
```


---

Original Source: https://www.mindstick.com/forum/33758/how-to-detect-specific-uitextfield-after-the-user-click

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
