Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
asahiocean
SZRCAI
Commits
8949a757
Verified
Commit
8949a757
authored
Mar 10, 2021
by
asahiocean
🚀
Browse files
Added a map
parent
cc1a0c29
Changes
2
Hide whitespace changes
Inline
Side-by-side
SZRCAI/SZRCAI.xcodeproj/project.pbxproj
View file @
8949a757
...
...
@@ -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
;
...
...
SZRCAI/SZRCAI/Main code/Controllers/ViewController.swift
View file @
8949a757
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
)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment