Debug view hierarchy in Xcode 7.3 fails

前端 未结 3 1273
一整个雨季
一整个雨季 2020-12-13 06:58

This function fails with runtime error:

-[UIWindow viewForFirstBaselineLayout]: unrecognized selector sent to instance 0x7fb9dae257d0

Anybo

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-13 07:37

    Looks like Xcode 7.3 uses viewForFirstBaselineLayout property to draw the UI. But this property is marked as available since iOS 9.0.

    [UIView viewForFirstBaselineLayout] method should be used for the version prior to iOS 9.0. It seems the guys from Apple didn't consider this case.

提交回复
热议问题