Ava*_*rio 85
这可以通过将UITableViewCell
披露指示符放在以下内容中完全使用代码完成UIButton
:
UITableViewCell *disclosure = [[UITableViewCell alloc] init];
disclosure.frame = button.bounds;
disclosure.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
disclosure.userInteractionEnabled = NO;
[button addSubview:disclosure];
Run Code Online (Sandbox Code Playgroud)
迅速:
let disclosure = UITableViewCell()
disclosure.frame = button.bounds
disclosure.accessoryType = .disclosureIndicator
disclosure.isUserInteractionEnabled = false
button.addSubview(disclosure)
Run Code Online (Sandbox Code Playgroud)
mev*_*dev 12
请注意,您必须使用透明背景
在photoshop文件中,这是我能得到的最佳匹配:
请注意,它包含下面的REAL iOS IMAGE(来自屏幕截图)作为图层,因此您可以进行比较.
http://www.filedropper.com/fakearrowiosnov2013psd
似乎VBK想要UITableView系列中的单个V形臂.这被称为"披露指标",而不是UIButton提供的" 详细披露".
我想你想要这样的东西:
它是50x80,背景透明.在按钮或UIImageView上使用此图像.将其大小调整为您希望按钮的大小.Apple建议命中目标不低于40x40.我在故事板中将其大小设置为10x16,但我使用透明按钮覆盖,因此大小无关紧要.
Image Mirror:http://imgur.com/X00qn0Z.png
但请注意,这并不是iOS7中使用的图像.(2013年11月.)要获得准确的图像,只需在模拟器中运行视网膜中的应用程序,并制作屏幕截图.
归档时间: |
|
查看次数: |
32482 次 |
最近记录: |