Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Selecting the text within a UITextField

$
0
0

When a UITextField receives focus, I want the text inside of it to be automatically selected so that anything the user types overwrites it. I've tried the following, but it doesn't work:

amountField.EditingDidBegin += (object sender, EventArgs e) =>
{ 
    amountField.SelectAll(amountField);
};

Has anyone had luck doing this?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>