EddyBorja / MLPAutoCompleteTextField

UITextfield subclass with autocomplete menu. For iOS.
Other
1.21k stars 222 forks source link

autoCompleteDelegate used in the initialiser but is not yet set #74

Open csknns opened 9 years ago

csknns commented 9 years ago

The IBOutlet autoCompleteDelegate is accessed from the initializer (init-> initialize-> styleAutoCompleteTableForBorderStyle:), but the outlets are not set while the designated initializer chain is called, so delegate method autoCompleteTextField:shouldStyleAutoCompleteTableView:forBorderStyle: will never get called while the class is initializing

I created a pull request EddyBorja/MLPAutoCompleteTextField#73 that should fix this issue.