views:

16

answers:

1

There is an option in UITextView properties to detect address from the the text view text. However I am not able to do that. The text view is not in editable mode.

Do you know how to detect address from text view? Is there a format that the address must have to be detected from the text view?

A: 

A UITextView won't automatically detect if text entered in the control is an address or provide you with the data you need to map the address on a map. It is simple a control to display arbitrary text data to the user:

You typically use a text view to display multiple lines of text, such as when displaying the body of a large text document.

I am not familiar with any algorithms to detect an address from a block of text, but if you work that part out, you can use geocoding to translate from the address to the latitude/longitude value you need to display it on a map.

Cannonade
@aj If there is anything I can add to this answer. Let me know.
Cannonade