Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Title isn't disappearing after selecting an element #7

Open
skander300 opened this issue Jun 23, 2017 · 4 comments
Open

Title isn't disappearing after selecting an element #7

skander300 opened this issue Jun 23, 2017 · 4 comments

Comments

@skander300
Copy link

under iOS 8 or iOS 9 , when i select an element from the dropdown list, title isn't disappearing and still appears under selected choice label .
Any solution ?

@KrishnaPatell
Copy link
Owner

hello @skander300,
Can you please provide your setUp code for KPDropMenu..?

@skander300
Copy link
Author

skander300 commented Jun 27, 2017

@interface AuthenticationViewController : UIViewController<KPDropMenuDelegate
@property (nonatomic, weak) IBOutlet KPDropMenu *catalogDropDownMenu;
@property (nonatomic, weak) IBOutlet KPDropMenu *languageDropDownMenu;
@end

@implementation AuthenticationViewController
- (void)viewDidLoad {
    [super viewDidLoad];
//configure catalog dropdown menu
//[self getCatalogNames] is a method that returns a NSArray filled with at least two strings
    _catalogDropDownMenu.items=[self getCatalogNames];
    _catalogDropDownMenu.title=@"Select Catalog";
    _catalogDropDownMenu.delegate = self;
    
//configure language dropdown menu
//[self getCatalogNames] is a method that returns a NSArray filled with at least two strings
_languageDropDownMenu.items=[self getLanguageNames];
    _languageDropDownMenu.title=@"Select language";
    _languageDropDownMenu.delegate = self;
}

-(void)didSelectItem : (KPDropMenu *) dropMenu atIndex : (int) atIntedex{
}
@end

@KrishnaPatell
Copy link
Owner

hi.. @skander300

Good Afternoon,
I tried with your code but can't produce an error that u get.. my demo is working properly.

_languageDropDownMenu.items=@[@"English", @"French", @"Japanese"];
_languageDropDownMenu.title=@"Select language";
_languageDropDownMenu.delegate = self;

See the screenshot:

untitled

@kuldeep13990
Copy link

@skander300 how to change Single DropMenu title based on segment Value change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants