Verified Commit 8949a757 authored by asahiocean's avatar asahiocean 🚀
Browse files

Added a map

parent cc1a0c29
......@@ -581,7 +581,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = KXDT64LHVB;
INFOPLIST_FILE = "SZRCAI/Root Files/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
......@@ -602,7 +602,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = KXDT64LHVB;
INFOPLIST_FILE = "SZRCAI/Root Files/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
......
import UIKit
import MapKit
// Тестовое задание «СЗ РЦАИ» iOS Developer
class ViewController: UIViewController {
class ViewController: UIViewController, MKMapViewDelegate {
var mapView: MapView!
/// Button for building graphs and routes
weak var mainButton: UIButton!
weak var clearButton: UIButton!
var buttonKVO: NSKeyValueObservation!
var pinsKVO: NSKeyValueObservation!
override func viewDidLoad() {
super.viewDidLoad()
mapView = .init(frame: view.frame)
mapView.delegate = self
view.addSubview(mapView)
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment