UITableViewController中的NIDropDown剪切下拉列表

时间:2018-06-02 06:48:46

标签: ios objective-c uitableview dropdown

我正在使用NIDropDown在静态表视图中显示下拉列表。它工作但我的下拉列表没有正确显示。

enter image description here

点击按钮

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

1 个答案:

答案 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];
    }