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++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -