您的位置:首页 > 移动开发 > IOS开发

Attribute Unavailable: First baseline layout attribute on iOS versions prior to 8.0

2015-08-04 14:53 267 查看
I'm getting the following warning in XCode 6.1.

Attribute Unavailable: First baseline layout attribute on iOS versions prior to 8.0

I think, this is also causing my iOS 7.x builds to crash.

ios , xcode , ios7 , ios8 , autolayout

Solved
Thursday 1st of January 20151 Answers1368 views

Answers ( 1 )

Answered by: djburdick

Found the issue. This new constraint was added to iOS 8.0 and isn't supported with previous versions.

To get rid of this warning and allow iOS 7 builds to work you need to:

1. Click on the warning in the side bar (this should highlight the offending constraint)

2. Change that constraint to something other than "First Baseline". "Center Y" worked well for me. You'll have to play with the options and can see the changes live to see which alternative works for you.

iOS 7 now builds again and warning is gone.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: