2017년 1월 12일 목요일

How to create a textbox with choices based on what the user wrote ?


I would like to create a textbox which when a user write something, different choices appear based on what he wrote.
Could you help me please ?
Thank you very much.

--
You can do if textbox.text = (what user types in)

then set label.text (Which are the choices) to (what you want) and you can do that for however many choices you want

-- 
Possibly you need to create a list; to contain keywords; like a dictionary. Keep them all as lowercase.
Then when user enters the text; you need to lowercase it and extract words from it. 
Then look it up in your dictionary list and if found, then possibly lookup the index on another synched list

-- 

댓글 없음:

댓글 쓰기