简体   繁体   中英

HTAutocompleteTextField crashes

I am trying to use HTAutocompleteTextField for iOS. I set the text field using the interface builder. Included the required data source and delegate protocols in my header file, and set the datasource/delegate to self in my controller. However, as soon as I hit either the call to set the delegate or the datasource the app crashes. I've checked the obvious to make sure I didn't have a nil HTAutocompleteTextField . Has anyone experienced this issue?

You need to make sure you set the class of the view in Interface Builder to HTAutocompleteTextField . This can be done in the right hand side panel.

右侧面板

(Above screen shot is a crop from the official Apple docs ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM