-2

I have the 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 does have an IBOutlet to a map but nothing is displaying. Any ideas what I'm doing wrong?

It works fine in the iOS app but does nothing on the Watch.

4thSpace
  • 43,672
  • 97
  • 296
  • 475
  • "but nothing is displaying." what does that mean ? The map tiles are not showing or the map itself is not showing? – Muneeba Jan 21 '16 at 05:16

1 Answers1

0

Just try to set AutoResizingMask :

mymap.autoresizingMask = [UIViewAutoresizing.FlexibleWidth, UIViewAutoresizing.FlexibleHeight]

Also, try to disconnect and reconnect your outlet.

Sohil R. Memon
  • 9,404
  • 1
  • 31
  • 57
  • 1
    Use of unresolved identifier: UIViewAutoresizing. Tried reconnecting the outlet but still nothing. – 4thSpace Jan 16 '16 at 14:27