简体   繁体   English

iPhone中的分段控件未出现在Ipad的界面生成器中

[英]segemented control in iphone not appearing as in interface builder for Ipad

I'm working with an iPad project. 我正在处理一个iPad项目。 the problem below does not occur for iPhone projects (oddly enough) iPhone项目不会发生以下问题(非常奇怪)

here is what i see in IB 这是我在IB看到的

替代文字

and here is what appears in the simulator 这是模拟器中出现的内容 替代文字

i've used a segmented control with style = "Bezelled". 我使用了样式为“ Bezelled”的分段控件。 When i change the style to "Bar", IB and simulator are consistent in the display. 当我将样式更改为“ Bar”时,IB和模拟器在显示中保持一致。 the style is set in interface builder and not in code, if that matters 样式是在界面生成器中设置的,而不是在代码中设置的(如果重要)

Also - the edges look rather ugly in the simulator. 另外-模拟器中的边缘看起来很难看。 not what i expected even when it rendered incorrectly. 不是我所期望的,即使它渲染不正确。

Thanks in advance 提前致谢

Can you check attributes in your Interface Builder ?? 您可以在Interface Builder中检查属性吗? This is what I have and I got a consistent segmented control in both IB and simulator !! 这就是我所拥有的,我在IB和模拟器中都得到了一致的分段控制! (we're sorry, but as a spam prevention mechanism, new users aren't allowed to post images. Earn more than 10 reputation to post images.) (we're sorry, but as a spam prevention mechanism, new users can only post a maximum of one hyperlink. Earn more than 10 reputation to post more hyperlinks.) http://img689.imageshack.us/img689/1938/screenshot20101227at740.png (很抱歉,但是,作为垃圾邮件阻止机制,不允许新用户发布图像。获得超过10个信誉来发布图像。)(很抱歉,但是,作为垃圾邮件阻止机制,新用户只能最多发布一个超链接。赢得10个以上的声誉可以发布更多超链接。) http://img689.imageshack.us/img689/1938/screenshot20101227at740.png

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM