为 uibutton ios 使用表格视图披露指示器样式 [英] Use table view disclosure indicator style for uibutton ios

查看:17
本文介绍了为 uibutton ios 使用表格视图披露指示器样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个自定义视图,我想模仿表格视图单元格中的披露指示符.这可能吗 ?是否有提取该图像的方法?

解决方案

注意必须使用透明背景

这是我能得到的最佳匹配,在 Photoshop 文件中:

请注意,它在下方包含 REAL iOS IMAGE(来自屏幕截图)作为图层,因此您可以进行比较.

<小时>

请注意,这并非完全是 iOS7 中使用的图像.(2013 年 11 月.)要获得准确的图像,只需在您的模拟器中以视网膜运行应用程序,然后制作屏幕截图.

I have a custom view and i want to imitate the disclosure indicator found in table view cells. Is this possible ? Is there anyway of extracting that image ?

解决方案

Note that you must use a transparent background

Here's the best possible match I can get, in a photoshop file:

Note that it includes the REAL iOS IMAGE (from a screenshot) underneath as a layer, so you can compare.

http://www.filedropper.com/fakearrowiosnov2013psd


It seems like VBK wants the single chevron from the UITableView collection. Which is called 'Disclosure Indicator' as opposed to the one available from UIButton which is 'Detail Disclosure'.

I think you want something like this:

It is 50x80 with a transparent background. Use this image on top of a button or UIImageView. Resize it to whatever size you'd like your button to be. Apple recommends a hit target of no less than 40x40. I sized it to 10x16 in my storyboard, but I am using a transparent button overlay so the size doesn't matter.

Image Mirror : http://imgur.com/X00qn0Z.png


Just note however this is not precisely the image used in iOS7. (Nov 2013.) To get the exact image, simply run an app in retina in your simulator, and make a screenshot.

这篇关于为 uibutton ios 使用表格视图披露指示器样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆