Rounded Textured Segmented control style deprecate

2019-06-22 16:14发布

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

3条回答
再贱就再见
2楼-- · 2019-06-22 16:28

Using "Textured Square" worked best for me.

查看更多
劫难
3楼-- · 2019-06-22 16:32

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:

enter image description here

查看更多
【Aperson】
4楼-- · 2019-06-22 16:34

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

查看更多
登录 后发表回答