I am using google maps in my project i want to show my location button a bit up how should i do that using swift
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- How do you change the color of the dotted line on
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- Avoiding “Sorry, we have no imagery here” with Goo
Update for swift 4 : just change the position of my location button only
You can change the position of the MapControls by set the padding for your map view .
It will change the padding of the my location control. From bottom 50px and from right 50px
Refer the below screenshot which added the padding of 50px from bottom and right.
Like Subramanian, this works very well :
This is perfect if you have a navigation bar in your app.