标签: ios button swift3 gmsmapview
我尝试但无法显示按钮
代码:
btnLokasiSaya = UIButton(frame: CGRect(x: 341, y: 28, width: 100, height: 30)) self.viewMap.addSubview(btnLokasiSaya)
StoryBoard:
输出:在仿真中找不到我的按钮
答案 0 :(得分:4)
在Main.Storyboard外部的mapview的添加按钮中,如下所示:
Main.Storyboard
mapview