KPDropMenu icon indicating copy to clipboard operation
KPDropMenu copied to clipboard

Title isn't disappearing after selecting an element

Open skander300 opened this issue 7 years ago • 4 comments

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 ?

skander300 avatar Jun 23 '17 14:06 skander300

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

KrishnaPatell avatar Jun 26 '17 13:06 KrishnaPatell

@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

skander300 avatar Jun 27 '17 11:06 skander300

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

KrishnaPatell avatar Jun 28 '17 09:06 KrishnaPatell

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

kuldeep13990 avatar Oct 30 '17 10:10 kuldeep13990