我是ios编程新手,需要实现类似google搜索框的东西,即自动填充文本字段。当用户输入文本字段时,我的场景如下:2.后台调用webservice for data(request data= text field data)。
例如:-如果用户在文本字段中键入"abc“,请求web服务调用的数据应该是"abc”,而web服务会对此作出响应。现在,下次用户输入"d“即textfield包含"abcd”服务响应时,必须考虑附加的文本。(,类似于google,)3. i.e服务调用应该是异步的。4.应在下拉列表中显示答复。
在ios中有可能吗?任何教程或示例将不胜感
如果我试图在fxml文件中使用fx:define标记,例如。
<fx:define>
<Tooltip fx:id="thetip" prefWidth="120" wrapText="true" text="Here's a tip of the day: prefWidth and wrapText attrs control the behavior of the tip."/>
</fx:define>
<Button tooltip="${thetip}&