mardi 23 juin 2015

Access UITextField from custom class

I'm trying to create a custom auto-complete UITextField. I'm trying to figure out how to start.

My setup will be something like this: I'm gonna have to subclass the class to UITableView - @interface MyClass : UITableView. I have a property in MyClass of a UITextField called toTextField.

How can I make toTextField equal toTextField?

(I know it's possible because this project has the same type of thing. AutoComplete. That's not my project.)

I'm gonna be setting the textField's (from the storyboard) class to my custom class. (MyClass)

If this isn't clear, please ask in the comments for clarification.

See more ..

Aucun commentaire:

Enregistrer un commentaire