swift2 - Why doesn't map display anything? -
i have following in awakewithcontext():
let coord = cllocationcoordinate2d(latitude: 40.748433,longitude: -73.985656) let region = mkcoordinateregion(center: coord, span: mkcoordinatespanmake(10, 10)) mymap.setregion(region)
mymap have iboutlet map nothing displaying. ideas i'm doing wrong?
it works fine in ios app nothing on watch.
just try set autoresizingmask
:
mymap.autoresizingmask = [uiviewautoresizing.flexiblewidth, uiviewautoresizing.flexibleheight]
also, try disconnect , reconnect outlet.
Comments
Post a Comment