Created
June 3, 2014 11:48
-
-
Save koogawa/500a526cafbba43152ca to your computer and use it in GitHub Desktop.
Swiftの練習
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
import UIKit | |
import MapKit | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. | |
var mapRect: CGRect = CGRect(x:0, y:0, | |
width:self.view.frame.size.width, height:self.view.frame.size.height) | |
var mapView = MKMapView() | |
mapView.frame = mapRect | |
mapView.showsUserLocation = true | |
self.view.addSubview(mapView) | |
} | |
override func didReceiveMemoryWarning() { | |
super.didReceiveMemoryWarning() | |
// Dispose of any resources that can be recreated. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment