Skip to content

lionjohn/FSComboListView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FSComboListView

This library provides a comboList view with support of customized styles.

Screenshots

Code used in the screencast are included in the bundled sample project.

screencast

How To Use

1. Initialize FSComboListView

#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];

2. Implement Delegates


- (void) comboboxOpened:(FSComboListView *)combobox
{
    NSLog(@"comboboxOpened");
}

- (void) comboboxClosed:(FSComboListView *)combobox
{
    NSLog(@"comboboxClosed");
}

- (void) comboboxChanged:(FSComboListView *)combobox toValue:(NSString *)toValue
{
    NSLog(@"comboboxChanged to value %@",toValue);
}

Demo Project

To run the demo project, download and unzip the code. See Example.

Requirements

  • iOS 7 or above

Future Enhancements

  • Enalbe blocks;
  • Swift support;

Author

Lion John, [email protected]

Licenses

All source code is licensed under the MIT License.

About

Customized Combo List View for iOS.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors