简体   繁体   English

iOS自定义披露指标的维度是什么?

[英]What are the dimensions of iOS custom disclosure indicators?

I am looking to implement a custom disclosure indicator in a UITableView . 我希望在UITableView实现自定义披露指标。 Basically I need to make white indicators. 基本上我需要制作白色指标。

Apple documentation lists dimensions that are required for app icons for the retina and non-retina display, however I couldn't find recommended dimensions for items such as disclosure indictors. Apple文档列出了视网膜和非视网膜显示器的应用程序图标所需的尺寸,但是我无法找到披露指示器等项目的建议尺寸。

Does anyone have any suggestions on what the appropriate dimensions would be to create disclosure icons for retina and non-retina displays? 有没有人对于为视网膜和非视网膜显示器创建披露图标的适当尺寸有什么建议?

And come to think of it how would the app know which one to pick? 并想一想应用程序如何知道选择哪一个?

Our app uses white disclosure indicators in iOS 7. To match the styling in iOS 6.1 and prior, we use a custom disclosure indicator image that corresponds exactly to the iOS 7 disclosure indicator. 我们的应用程序使用iOS 7中的白色披露指示器。为了匹配iOS 6.1及更早版本中的样式,我们使用与iOS 7披露指示器完全对应的自定义披露指示器图像。 We were able to obtain a pixel-perfect match with 26x28 disclosure@2x.png and 13x14 disclosure.png. 我们能够获得与26x28 disclosure@2x.png和13x14 disclosure.png完美匹配的像素。

disclosure@2x.pngdisclosure.png

For custom disclosure indicators you could just use UITableViewCell 's accessoryView property and set any size you want. 对于自定义披露指标,您可以使用UITableViewCellaccessoryView属性并设置您想要的任何大小。 If you are asking for disclosure indicator sizes that apple uses, they are: 58x62 for disclosure button, retina, and 19x28 for disclosure indicator, retina. 如果您要求苹果使用的披露指标大小,它们是:58x62用于披露按钮,视网膜,19x28用于披露指标,视网膜。 Good Luck! 祝好运!

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

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