Rounded Textured Segmented control style deprecated in OSX 10.7? What should I use?

岁酱吖の 提交于 2019-12-23 10:13:10

问题


I'm getting this warning message when I try using "Segmented control" with style "Rounded Textured".

It is the default style in Interface Builder, so I wonder why is it complaining?

If I set to any other style, the warning goes away. But I want to use this style, so that it matches other controls in the task bar.

OSX10.7 / XCode 4.1


回答1:


What about "automatic"? That's what's always looking good for me.




回答2:


I've just hit this issue and the suggested fix of using "Automatic" doesn't work for me. I managed to fix it by setting the Deployment Target of the .xib to 10.6. My project's target deployment is already 10.6, so it should have been anyway.

Don't forget to unset "Use Auto Layout" if you actually want to run your App on 10.6, else it will throw an exception:




回答3:


Using "Textured Square" worked best for me.



来源:https://stackoverflow.com/questions/7533285/rounded-textured-segmented-control-style-deprecated-in-osx-10-7-what-should-i-u

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