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
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.
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: djburdickFound 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.
相关文章推荐
- iOS学习笔记7- iOS 添加定制字体到应用程序中
- iOS开源项目 FreeBall
- CoreLocation定位服务
- 视图链中如何确定根视图
- iOS启动图片和icon大小集合
- 依赖注入——让iOS代码更简洁
- 【IOS】高仿百度传课
- ios动画效果和实现
- iOS开发之窗口和视图
- iOS应用内付费(IAP)开发步骤
- iOS代码书写规范
- IOS布局
- ios 获取设备的ip地址
- 猫猫学iOS 之微博项目实战(8)用AFNetworking和SDWebImage简单加载微博数据
- iOS总结(界面传值的方法)
- iOS中NSArray, NSSet, NSDictionary的使用
- iOS开发之理解iOS中的MVC设计模式
- iOS开发利器-CocoaPods安装和使用教程
- 自定义图片轮播控件
- iOS开发者福利之精品源码汇总!免费下载