是否可以对IOS日期选择器进行“换肤"? [英] Is it possible to 're-skin' the IOS Date Picker?

查看:39
本文介绍了是否可以对IOS日期选择器进行“换肤"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个自定义的日期选择器,本质上只想删除IOS版本中的图形,但保留3列日期滚动.它是否需要从头开始重建(所有研究都指向是),还是可以仅禁用或交换图像.

I require a custom date picker, essentially just want to remove the graphics in the IOS version but retain the 3 column date scroll. Does it need to be re-built from scratch (all research points to yes) , or is it possible to just disable or swap the images.

推荐答案

我自己还没有尝试过,但是也许您可以在datepicker上方添加一个UIImageView,并在其中添加一个透明部分以供滚动部分显示.

I haven't tried it myself, but maybe you could just add a UIImageView above the datepicker with a transparent section for the scrolling sections to show through.

这篇关于是否可以对IOS日期选择器进行“换肤"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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