To run the example project, clone the repo, and run pod install
from the Example directory first.
RKDropDownTextField is a quick to install easy to use dropdown textField for iOS.
- Drag and drop a
UIView
into storyboard. - Change its class to
RKDropDownTextField
.
- Set necessary attributes in the attributes inspector.
-
Create outlet.
-
Set
delegate
as the object which conforms to the protocol<RKDropDownTextFieldDelegate>
. -
Implement delegate method
- (void)dropDownTextField:(RKDropDownTextField *)dropDownTextField didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // Your code goes here }
-
Set the property
values
with the possible values the list must contain.
You are done! Run the code and try tapping on the DropDownTextField.
iOS 8.0. Objective C.
RKDropDownTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "RKDropDownTextField"
Radhakrishna Pai, [email protected]
RKDropDownTextField is available under the MIT license. See the LICENSE file for more info.