add some button to GMSMapView (Google Map) and change the image button

拟墨画扇 提交于 2019-12-11 17:07:55

问题


I try but can't show the button

Code:

btnLokasiSaya = UIButton(frame: CGRect(x: 341, y: 28, width: 100, height: 30))
self.viewMap.addSubview(btnLokasiSaya)

StoryBoard:

Output: my button is not found in simulation


回答1:


In your Main.Storyboard add button outside the mapview as shown below:



来源:https://stackoverflow.com/questions/52440728/add-some-button-to-gmsmapview-google-map-and-change-the-image-button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!