NIDropDown 菜单查询
NIDropDown menu Query
我在视图条带中使用 NIDropworn 问题是下拉菜单 table 覆盖了我刚刚放在下拉视图下方的另一个视图。
我无法 select 并且无法对下拉列表进行任何操作 table 。
有没有办法在第二个视图中添加下拉菜单。
现在下拉菜单出现在小视野中。
例如:我在 view1.and 页面的页眉中有下拉菜单 view1.and 下拉菜单 table 出现在 view2 的正文中。
您可能没有在视图中添加 NIDropDown
。
- (IBAction)btn_click:(id)sender {
NSArray * arr = [[NSArray alloc] init];
arr = [NSArray arrayWithObjects:@"None",@"Name",@"Date",nil];
// NSArray * arrImage = [[NSArray alloc] init];
if(dropDown == nil) {
CGFloat f = 130;
dropDown = [[NIDropDown alloc]showDropDown:sender :&f :arr :nil :@"down"];
dropDown.delegate = self;
dropDown.userInteractionEnabled=YES;
[self.viewBelowDD addSubview:dropDown]; // may be missing this line
[self.viewBelowDD bringSubviewToFront:dropDown];
}
else {
[dropDown hideDropDown:sender];
[self rel];
}
}
希望对您有所帮助。如果这不起作用,请告诉我。
我在视图条带中使用 NIDropworn 问题是下拉菜单 table 覆盖了我刚刚放在下拉视图下方的另一个视图。
我无法 select 并且无法对下拉列表进行任何操作 table 。
有没有办法在第二个视图中添加下拉菜单。 现在下拉菜单出现在小视野中。
例如:我在 view1.and 页面的页眉中有下拉菜单 view1.and 下拉菜单 table 出现在 view2 的正文中。
您可能没有在视图中添加 NIDropDown
。
- (IBAction)btn_click:(id)sender {
NSArray * arr = [[NSArray alloc] init];
arr = [NSArray arrayWithObjects:@"None",@"Name",@"Date",nil];
// NSArray * arrImage = [[NSArray alloc] init];
if(dropDown == nil) {
CGFloat f = 130;
dropDown = [[NIDropDown alloc]showDropDown:sender :&f :arr :nil :@"down"];
dropDown.delegate = self;
dropDown.userInteractionEnabled=YES;
[self.viewBelowDD addSubview:dropDown]; // may be missing this line
[self.viewBelowDD bringSubviewToFront:dropDown];
}
else {
[dropDown hideDropDown:sender];
[self rel];
}
}
希望对您有所帮助。如果这不起作用,请告诉我。