This library provides a comboList view with support of customized styles.
Code used in the screencast are included in the bundled sample project.
#import "FSComboListView.h"
...
FSComboListView *comboListView = [[FSComboListView alloc] initWithValues:@[@"Value 1",
@"Value 2",
@"Value 3",
@"Value 4",
@"Value 5"]
frame:CGRectMake(0, 0, 300, 40)];
comboListView.delegate = self;
comboListView.tintColor = [UIColor darkGrayColor];
comboListView.textColor = [UIColor darkGrayColor];
comboListView.center = self.view.center;
[self.view addSubview:comboListView];
- (void) comboboxOpened:(FSComboListView *)combobox
{
NSLog(@"comboboxOpened");
}
- (void) comboboxClosed:(FSComboListView *)combobox
{
NSLog(@"comboboxClosed");
}
- (void) comboboxChanged:(FSComboListView *)combobox toValue:(NSString *)toValue
{
NSLog(@"comboboxChanged to value %@",toValue);
}
To run the demo project, download and unzip the code. See Example.
- iOS 7 or above
- Enalbe blocks;
- Swift support;
Lion John, [email protected]
All source code is licensed under the MIT License.
