Closed Amirnajafi closed 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.
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)
}
in mobile of tablet in formsheet view my form go to the bottom down of page
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.
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.
in ios 11.2 formview viewing with bug you cant see it int picute