我正在使用NIDropDown在静态表视图中显示下拉列表。它工作但我的下拉列表没有正确显示。
点击按钮的NIDropDown代码
if(dropDown == nil) {
CGFloat f = arrPreferredContact.count*40;
dropDown = [[NIDropDown alloc]showDropDown:sender :&f :arrPreferredContact :nil :@"down"];
dropDown.delegate = self;
}else {
[dropDown hideDropDown:sender];
[self rel];
}
答案 0 :(得分:0)
我只是将发件人更改为我的单元格及其工作
if(dropDown == nil) {
CGFloat f = arrPreferredContact.count*40;
dropDown = [[NIDropDown alloc]showDropDown:_prefreredCell :&f :arrPreferredContact :nil :@"down"];
dropDown.delegate = self;
[self.view layoutIfNeeded];
}else {
[dropDown hideDropDown:sender];
[self rel];
}