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

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -