Use table view disclosure indicator style for uibutton ios(为 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 使用表格视图披露指示器样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:为 uibutton ios 使用表格视图披露指示器样式
基础教程推荐
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01