开发者

Turn off or fix Bounce Zoom warning from iPhone XIB compilation

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜