Skip to content

Instantly share code, notes, and snippets.

@koogawa
Created June 3, 2014 11:48
Show Gist options
  • Save koogawa/500a526cafbba43152ca to your computer and use it in GitHub Desktop.
Save koogawa/500a526cafbba43152ca to your computer and use it in GitHub Desktop.
Swiftの練習
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