开发者

Turn off or fix Bounce Zoom warning from iPhone XIB compilation

开发者 https://www.devze.com 2022-12-23 15:09 出处:网络
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

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 optio开发者_StackOverflown in my XIB file, how can I not see this warning?


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)
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号