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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -