我想知道如何在地图视图上将 Mapbox 的徽标和信息按钮向上移动一点。但我所做的任何事情似乎都不会影响地图
--我第一次尝试解决这个问题
let mapboxLogo = mapView.logoView
mapView.logoView.isHidden = true
let logoLeftConstraint = NSLayoutConstraint(item: mapboxLogo, attribute: NSLayoutAttribute.leading, relatedBy: .equal, toItem: mapView, attribute: NSLayoutAttribute.leading, multiplier: 1.0, constant: 8)
let logoBottomConstraint = NSLayoutConstraint(item: mapboxLogo, attribute: NSLayoutAttribute.bottom, relatedBy: .equal, toItem: mapView, attribute: NSLayoutAttribute.bottom, multiplier: 1.0, constant: 32)
mapboxLogo.translatesAutoresizingMaskIntoConstraints = false
mapView.addConstraints([logoLeftConstraint, logoBottomConstraint])
mapView.addSubview(mapboxLogo)