Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个问题。当我将按钮添加到警报时,但如果按钮编号超过 6 个,则该按钮将显示在警报视图框架之外。我怎样才能像滚动视图一样正确显示它们?
你有没有想过把它分成两个 UIAlertViews?尝试将您的第 5/6 个按钮设置为“更多选项”按钮,并在 dismissedWithButton 函数中进行处理。然后让最后一个按钮成为“取消”按钮。