rushisangani / RSSelectionMenu

An elegant selection list or dropdown menu for iOS with single or multiple selections.
MIT License
351 stars 91 forks source link

ios 11.2 formview bug #9

Closed Amirnajafi closed 6 years ago

Amirnajafi commented 6 years ago

in ios 11.2 formview viewing with bug you cant see it int picute screen shot 1396-09-19 at 12 20 26 pm

rushisangani commented 6 years ago

Hello @Amirnajafi, Could you please share your code that how you're presenting the menu. So that I can try to resolve it asap.

Also, please update your pod to latest version 3.0 to get latest updates.

Thanks.

Amirnajafi commented 6 years ago
    let selectionMenu =  RSSelectionMenu(dataSource: educationLvlElement) { (cell, object, indexPath) in
        ConfigSelectionCell(cell: cell)
        cell.textLabel?.text = object
    }

    selectionMenu.tableView?.semanticContentAttribute  = .forceRightToLeft
    selectionMenu.setSelectedItems(items: selectedField) { (text, isSelected, selectedItems) in
        self.selectedEducatinLvl = selectedItems
        self.educationLvlLabel.text = text

    }

    selectionMenu.showSearchBar(withPlaceHolder: "جستجو", tintColor: UIColor.white) { (Text) -> ([String]) in
        return self.educationLvlElement.filter({ $0.contains(Text)})
    }

    if IsIpad() {
        selectionMenu.show(style: .Popover(sourceView: educationLvlLabel, size: nil), from: self)
    }else{
        selectionMenu.show(style: .Formsheet, from: self)
    }
Amirnajafi commented 6 years ago

in mobile of tablet in formsheet view my form go to the bottom down of page

rushisangani commented 6 years ago

Hi @Amirnajafi, this bug was due to iOS 11.2 layout changes. This is fixed now in latest version RSSelectionMenu (3.2) Also, the base version of swift is changed to 4.0

Kindly update your pod to get latest features and bug fixes.

praditkan commented 4 years ago

I have this problem on SplitView. (Master-Detail.) I have a tablet on the landscape. It happens on the Detail screen. It seem to detected as "phone".

if UIDevice.current.userInterfaceIdiom == .phone {

            if UIApplication.shared.statusBarOrientation == .portrait {
                tableViewSize = CGSize(width: backgroundView.frame.size.width - 80, height: backgroundView.frame.size.height - 260)
            }else {
   **>>>>>**             tableViewSize = CGSize(width: backgroundView.frame.size.width - 250, height: backgroundView.frame.size.height - 150)
            }

Please help.