菜鸟教程小白 发表于 2022-12-13 03:51:47

ios - 更改 UIPageViewController 中点的透明度


                                            <p><p>我有一个具有透明背景的 <code>UIPageViewController</code>,我想知道是否可以使未选择的页面点不透明。它们目前是半透明的,我可以通过它们看到我的背景。</p>

<p>这可能吗?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>我没试过,但是有一个 <code>pageIndicatorTintColor</code> 和 <code>currentPageIndicatorTintColor</code>,两者都需要一个 <code>UIColor</code>,你可以在其中设置α。尽管文档警告:</p>

<blockquote>
<p>No alpha is applied to this property for you. It is recommended (but not required) that the color you specify for this parameter contains some transparency–i.e. the alpha value should be less than 1.0.</p>
</blockquote></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 更改 UIPageViewController 中点的透明度,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/18489930/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/18489930/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 更改 UIPageViewController 中点的透明度