Closed hengchengfei closed 7 years ago
menu高度能固定吗,像tableview一样,能上下滑动的?
添加了一个menuShowDefaultRows属性。
// FTConfiguration public var menuShowDefaultRows:Int = 0 fileprivate func configurePopMenuFrame() { //... if (arrowDirection == .Up) { popMenuFrame = CGRect(x: popMenuOriginX, y: (senderRect.origin.y + senderRect.size.height), width: configuration.menuWidth, height: popMenuHeight) if configuration.menuShowDefaultRows > 0 { let height = configuration.menuRowHeight * CGFloat(configuration.menuShowDefaultRows) + FTDefaultMenuArrowHeight popMenuFrame = CGRect(x: popMenuOriginX, y: (senderRect.origin.y + senderRect.size.height), width: configuration.menuWidth, height: height) } } }
估计要改下源码就可以支持
menu高度能固定吗,像tableview一样,能上下滑动的?
添加了一个menuShowDefaultRows属性。