从iPhone XIB编辑中关闭或修复Bounce Zoom警告 [英] Turn off or fix Bounce Zoom warning from iPhone XIB compilation

查看:218
本文介绍了从iPhone XIB编辑中关闭或修复Bounce Zoom警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一些XCode项目中,这已经让我烦恼了一段时间。我真的不喜欢在构建时有编译器警告。当我构建当前项目时,我从一堆XIB文件中收到以下警告:

This has been annoying me for a while in several XCode projects. I really don't like to have compiler warnings when I build. When I build my current project, I get the following warning from a bunch of XIB files:

/.../CaseInformationView.xib:3:0 UIScrollView's 'Bounce Zoom' option will be ignored on iPhone OS versions prior to 2.1.

由于我正在为3.0构建,我不在乎它是否会被忽略。如果我想在我的XIB文件中使用Bounce Zoom选项,我怎么能看不到这个警告?

Since I'm building for 3.0, I don't care if it will be ignored. If I want to use the Bounce Zoom option in my XIB file, how can I not see this warning?

推荐答案

在IB中,从窗口菜单中选择文档信息,并将部署目标设置为3.0。

In IB, select "Document Info" from the Window menu and set your Deployment target to 3.0.

编辑:在更新的Xcode版本中

In more current versions of Xcode


  1. 选择xib

  2. 转到文件检查器

  3. 在Interface Builder文档部分,设置部署和开发

  4. 此外,在项目的摘要页面上设置部署目标(选择主项目,然后选择摘要选项卡)

  1. Choose the xib
  2. Go to the File Inspector
  3. In the Interface Builder Document section, set Deployment and Development
  4. Also, set Deployment Target on Project's Summary page (choose main project, then Summary tab)

这篇关于从iPhone XIB编辑中关闭或修复Bounce Zoom警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆