更改 MonoTouch 中 UIPageControl 点的颜色
我想知道 MonoTouch 是否允许开发人员更改 UIPageControl 点的颜色以适应浅色背景 - 它们似乎是固定的白色,这使得它们在浅色纹理背景上很难看到。
我知道没有可用的公共 API,但我想知道 MonoTouch 中是否内部实现了任何东西来改进这一点。
否则,在浅色背景上使用 UIPageControl 的推荐方法是什么?
I was wondering if MonoTouch allows the developer to change the colour of UIPageControl dots to suit a light background - they seem to be fixed white, which makes them very hard to see on a light textured background.
I am aware there is no public API available for this but I was wondering if anything was internally implemented in MonoTouch to improve on this.
Otherwise, what's the recommended approach to using a UIPageControl on a light background?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我尝试翻译一下这个。我不确定它会起作用,但它确实可以编译。请注意,链接到的页面包含注释,表明 Apple 不赞成此代码并可能拒绝它:
I took a stab at translating this. I'm not sure it will work, but it does compile. Note that the page linked to contains comments indicating that Apple frowns upon this code and may reject it:
将以下代码转换为 C#: http://apptech.next- munich.com/2010/04/customizing-uipagecontrols-looks.html
Convert the following code to C#: http://apptech.next-munich.com/2010/04/customizing-uipagecontrols-looks.html
我结合了这个和<一href="https://stackoverflow.com/questions/2942636/how-i-change-the-color-of-pagination-dots-of-uipagecontrol/7677213#7677213">此用于单点触控。我希望这有帮助。
用法是这样的:
类是这样的。
I combined this and this for monotouch. I hope this helps.
The usage is like this:
And the class like this.