Last active
August 29, 2015 14:06
-
-
Save aceontech/050d2e53fe931df53431 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ViewController : UIViewController, MKMapViewDelegate { | |
/** | |
Create lazy property to the map view, initializing it with | |
the convenience init function described in the class | |
extension above | |
*/ | |
lazy var mapView:MKMapView = MKMapView { m in | |
m.delegate = self | |
m.showsUserLocation = true | |
// Do some other lazy init-related operation.. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment