菜鸟教程小白 发表于 2022-12-11 20:37:28

ios - 调整 Apple MKMapView 标签的大小


                                            <p><p>我的应用程序中的 mapView 在各个方面都运行良好,并且可以在 iPad 上正确显示。但在 iPhone 上,<em>country/state/city/etc.</em> 标签显得非常大而且超大。这是它在 iPhone 8 Plus 上的屏幕截图:</p>

<p> <a href="/image/kZmmA.png" rel="noreferrer noopener nofollow"><img src="/image/kZmmA.png" alt="enter image description here"/></a> </p>

<p> mapView 的宽度几乎是最大的,接近屏幕的宽度。 </p>

<p><strong>问:有什么方法可以调整/减小这些标签字体大小?</strong></p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>根据<strong>Apple Dev</strong>支持,<em>edford</em><strong>MKMapView</strong>中的标签直接与<em>文本大小</em>设置相关在设备上。没有 API 可以通过代码来控制它,因为它是用户偏好设置。</p>

<hr/>

<p>这是 <strong>Apple Dev</strong> 论坛上的答案:</p>

<ul>
<li> <a href="https://forums.developer.apple.com/message/332615" rel="noreferrer noopener nofollow">Adjusting Size of MKMapView Labels</a>

<hr/></li>
</ul>

<p>谢谢你,<em>埃德福德!</em></p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 调整 Apple MKMapView 标签的大小,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/52420971/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/52420971/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 调整 Apple MKMapView 标签的大小