相关疑难解决方法(0)

Swift默认AlertViewController突破约束

我正在尝试使用样式为.actionSheet的默认AlertViewController。由于某种原因,警报导致约束错误。只要没有通过按钮触发(显示)alertController,整个视图就不会出现约束错误。难道这是Xcode错误?

我得到的确切错误如下所示:

2019-04-12 15:33:29.584076+0200 Appname[4688:39368] [LayoutConstraints] Unable to simultaneously satisfy constraints.
    Probably at least one of the constraints in the following list is one you don't want. 
    Try this: 
        (1) look at each constraint and try to figure out which you don't expect; 
        (2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x6000025a1e50 UIView:0x7f88fcf6ce60.width == - 16   (active)>"
)

Will attempt to recover by breaking …
Run Code Online (Sandbox Code Playgroud)

iphone xcode ios swift ios-autolayout

37
推荐指数
4
解决办法
2232
查看次数

标签 统计

ios ×1

ios-autolayout ×1

iphone ×1

swift ×1

xcode ×1