Turn off or fix Bounce Zoom warning from iPhone XIB compilation

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 07:17:06

问题


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.

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?


回答1:


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

EDIT: In more current versions of Xcode

  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)


来源:https://stackoverflow.com/questions/2495446/turn-off-or-fix-bounce-zoom-warning-from-iphone-xib-compilation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!