- iOS 9.0+
- Xcode 8.2
CocoaPods is a dependency manager for Swift and Objective-C projects. You can install it with the following command:
$ gem install cocoapods
Depending on your Deployment Target, specify the following in your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
pod 'FLTextFieldAutoComplete'
After editing your Podfile, run the following command:
$ pod install
@import FLTextFieldAutoComplete;
...
@property (weak, nonatomic) IBOutlet FLTextFieldAutoComplete* сompleteField;
...
// Array as data
[self.сompleteField setStringsDataArray:<data array>];
// or block
[self.сompleteField setDataByBlock:^NSArray *(NSString *inputValue) {
// some code and return result
}];
FLTextFieldAutoComplete is available under the MIT license. See the LICENSE file for more info.