ios - 在 map View 的中心显示一个图钉
<p><div>
<aside class="s-notice s-notice__info post-notice js-post-notice mb16"role="status">
<div class="d-flex fd-column fw-nowrap">
<div class="d-flex fw-nowrap">
<div class="flex--item wmn0 fl1 lh-lg">
<div class="flex--item fl1 lh-lg">
<b>关闭</b>。这个问题需要<a href="https://stackoverflow.com/help/closed-questions" rel="noreferrer noopener nofollow">details or clarity</a> .它目前不接受答案。
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>只需将您的 <code>location</code> 设置为 mapView 中心坐标。</p>
<pre><code>// Example location
CLLocationCoordinate2D location = CLLocationCoordinate2DMake(37.79520324238053, -122.40283370018005);
// Drop a pin
MKPointAnnotation *startPin = [ init];
startPin.coordinate = location;
startPin.title = @"Start";
;
;
</code></pre></p>
<p style="font-size: 20px;">关于ios - 在 mapView 的中心显示一个图钉,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/27546303/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/27546303/
</a>
</p>
页:
[1]