CaliCastle / PopMenu

A fully customizable popup style menu for iOS 😎

Home Page:https://popmenu.cali.so

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

横竖屏切换没有正确处理

zdiovo opened this issue · comments

✔️ Issue Checklist

✍🏻 Issue Description

let actions = [
    PopMenuDefaultAction(title: "Some Text, Some Text, Some Text, Some Text, Some Text, Some Text"),
    PopMenuDefaultAction(title: "Some Text"),
    PopMenuDefaultAction(title: "Short"),
    PopMenuDefaultAction(title: "A Longer Text")
]
let popMenu = PopMenuViewController(actions: actions)
present(popMenu, animated: true, completion: nil)

运行在横屏状态下,UI显示正常,
然后切换到竖屏,显示就异常了
导致UI显示异常的原因主应该要是没有考虑title太长的情况
当title太长的情况,建议title可以像跑马灯一样滚动显示

💻 Environment

  • iOS Version: [12.2]
  • Xcode Version: [10.2.1]
  • Device(s): [iPhone XS Max]
  • Simulator?: ☑️

感谢提出orientation的问题,暂时PopMenu没有对横竖屏切换的方法进行监听,所以导致出现的unexpected behavior。下一个更新我会加上,thanks!