diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..654c2b0 Binary files /dev/null and b/.DS_Store differ diff --git a/RegistrationApplication/.DS_Store b/RegistrationApplication/.DS_Store new file mode 100644 index 0000000..1b3a4b6 Binary files /dev/null and b/RegistrationApplication/.DS_Store differ diff --git a/RegistrationApplication/RegistrationApplication.xcodeproj/project.pbxproj b/RegistrationApplication/RegistrationApplication.xcodeproj/project.pbxproj new file mode 100644 index 0000000..51f6484 --- /dev/null +++ b/RegistrationApplication/RegistrationApplication.xcodeproj/project.pbxproj @@ -0,0 +1,351 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 9F40CE332A50300300403A83 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F40CE322A50300300403A83 /* AppDelegate.swift */; }; + 9F40CE352A50300300403A83 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F40CE342A50300300403A83 /* ViewController.swift */; }; + 9F40CE382A50300300403A83 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9F40CE362A50300300403A83 /* Main.storyboard */; }; + 9F40CE3A2A50300700403A83 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9F40CE392A50300700403A83 /* Assets.xcassets */; }; + 9F40CE3D2A50300700403A83 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9F40CE3B2A50300700403A83 /* LaunchScreen.storyboard */; }; + 9F40CE452A50850600403A83 /* PhoneNumbersTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F40CE442A50850600403A83 /* PhoneNumbersTableViewController.swift */; }; + 9F40CE492A51B35D00403A83 /* PhoneNumberTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F40CE482A51B35D00403A83 /* PhoneNumberTableViewCell.swift */; }; + 9F40CE4B2A51CA4F00403A83 /* ErrorViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F40CE4A2A51CA4F00403A83 /* ErrorViewController.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 9F40CE2F2A50300300403A83 /* RegistrationApplication.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RegistrationApplication.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 9F40CE322A50300300403A83 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 9F40CE342A50300300403A83 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 9F40CE372A50300300403A83 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 9F40CE392A50300700403A83 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 9F40CE3C2A50300700403A83 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 9F40CE3E2A50300700403A83 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 9F40CE442A50850600403A83 /* PhoneNumbersTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PhoneNumbersTableViewController.swift; sourceTree = ""; }; + 9F40CE482A51B35D00403A83 /* PhoneNumberTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PhoneNumberTableViewCell.swift; sourceTree = ""; }; + 9F40CE4A2A51CA4F00403A83 /* ErrorViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ErrorViewController.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 9F40CE2C2A50300300403A83 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9F40CE262A50300300403A83 = { + isa = PBXGroup; + children = ( + 9F40CE312A50300300403A83 /* RegistrationApplication */, + 9F40CE302A50300300403A83 /* Products */, + ); + sourceTree = ""; + }; + 9F40CE302A50300300403A83 /* Products */ = { + isa = PBXGroup; + children = ( + 9F40CE2F2A50300300403A83 /* RegistrationApplication.app */, + ); + name = Products; + sourceTree = ""; + }; + 9F40CE312A50300300403A83 /* RegistrationApplication */ = { + isa = PBXGroup; + children = ( + 9F40CE322A50300300403A83 /* AppDelegate.swift */, + 9F40CE342A50300300403A83 /* ViewController.swift */, + 9F40CE442A50850600403A83 /* PhoneNumbersTableViewController.swift */, + 9F40CE482A51B35D00403A83 /* PhoneNumberTableViewCell.swift */, + 9F40CE362A50300300403A83 /* Main.storyboard */, + 9F40CE4A2A51CA4F00403A83 /* ErrorViewController.swift */, + 9F40CE392A50300700403A83 /* Assets.xcassets */, + 9F40CE3B2A50300700403A83 /* LaunchScreen.storyboard */, + 9F40CE3E2A50300700403A83 /* Info.plist */, + ); + path = RegistrationApplication; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 9F40CE2E2A50300300403A83 /* RegistrationApplication */ = { + isa = PBXNativeTarget; + buildConfigurationList = 9F40CE412A50300700403A83 /* Build configuration list for PBXNativeTarget "RegistrationApplication" */; + buildPhases = ( + 9F40CE2B2A50300300403A83 /* Sources */, + 9F40CE2C2A50300300403A83 /* Frameworks */, + 9F40CE2D2A50300300403A83 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = RegistrationApplication; + productName = RegistrationApplication; + productReference = 9F40CE2F2A50300300403A83 /* RegistrationApplication.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 9F40CE272A50300300403A83 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1030; + LastUpgradeCheck = 1030; + ORGANIZATIONNAME = "Ильмир Шарафутдинов"; + TargetAttributes = { + 9F40CE2E2A50300300403A83 = { + CreatedOnToolsVersion = 10.3; + }; + }; + }; + buildConfigurationList = 9F40CE2A2A50300300403A83 /* Build configuration list for PBXProject "RegistrationApplication" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 9F40CE262A50300300403A83; + productRefGroup = 9F40CE302A50300300403A83 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 9F40CE2E2A50300300403A83 /* RegistrationApplication */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 9F40CE2D2A50300300403A83 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9F40CE3D2A50300700403A83 /* LaunchScreen.storyboard in Resources */, + 9F40CE3A2A50300700403A83 /* Assets.xcassets in Resources */, + 9F40CE382A50300300403A83 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 9F40CE2B2A50300300403A83 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 9F40CE452A50850600403A83 /* PhoneNumbersTableViewController.swift in Sources */, + 9F40CE352A50300300403A83 /* ViewController.swift in Sources */, + 9F40CE4B2A51CA4F00403A83 /* ErrorViewController.swift in Sources */, + 9F40CE332A50300300403A83 /* AppDelegate.swift in Sources */, + 9F40CE492A51B35D00403A83 /* PhoneNumberTableViewCell.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 9F40CE362A50300300403A83 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 9F40CE372A50300300403A83 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 9F40CE3B2A50300700403A83 /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 9F40CE3C2A50300700403A83 /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 9F40CE3F2A50300700403A83 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.4; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 9F40CE402A50300700403A83 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.4; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 9F40CE422A50300700403A83 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = RegistrationApplication/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = anim.RegistrationApplication; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 9F40CE432A50300700403A83 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + INFOPLIST_FILE = RegistrationApplication/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = anim.RegistrationApplication; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 9F40CE2A2A50300300403A83 /* Build configuration list for PBXProject "RegistrationApplication" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9F40CE3F2A50300700403A83 /* Debug */, + 9F40CE402A50300700403A83 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 9F40CE412A50300700403A83 /* Build configuration list for PBXNativeTarget "RegistrationApplication" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 9F40CE422A50300700403A83 /* Debug */, + 9F40CE432A50300700403A83 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 9F40CE272A50300300403A83 /* Project object */; +} diff --git a/RegistrationApplication/RegistrationApplication.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/RegistrationApplication/RegistrationApplication.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..a6eff26 --- /dev/null +++ b/RegistrationApplication/RegistrationApplication.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/RegistrationApplication/RegistrationApplication.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/RegistrationApplication/RegistrationApplication.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/RegistrationApplication/RegistrationApplication.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/RegistrationApplication/RegistrationApplication.xcodeproj/project.xcworkspace/xcuserdata/ilmirsarafutdinov.xcuserdatad/UserInterfaceState.xcuserstate b/RegistrationApplication/RegistrationApplication.xcodeproj/project.xcworkspace/xcuserdata/ilmirsarafutdinov.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..cb71b44 Binary files /dev/null and b/RegistrationApplication/RegistrationApplication.xcodeproj/project.xcworkspace/xcuserdata/ilmirsarafutdinov.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/RegistrationApplication/RegistrationApplication.xcodeproj/xcuserdata/ilmirsarafutdinov.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/RegistrationApplication/RegistrationApplication.xcodeproj/xcuserdata/ilmirsarafutdinov.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..097db5f --- /dev/null +++ b/RegistrationApplication/RegistrationApplication.xcodeproj/xcuserdata/ilmirsarafutdinov.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,39 @@ + + + + + + + + + + + + + diff --git a/RegistrationApplication/RegistrationApplication.xcodeproj/xcuserdata/ilmirsarafutdinov.xcuserdatad/xcschemes/xcschememanagement.plist b/RegistrationApplication/RegistrationApplication.xcodeproj/xcuserdata/ilmirsarafutdinov.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..393cdb1 --- /dev/null +++ b/RegistrationApplication/RegistrationApplication.xcodeproj/xcuserdata/ilmirsarafutdinov.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + RegistrationApplication.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/RegistrationApplication/RegistrationApplication/AppDelegate.swift b/RegistrationApplication/RegistrationApplication/AppDelegate.swift new file mode 100644 index 0000000..b83881b --- /dev/null +++ b/RegistrationApplication/RegistrationApplication/AppDelegate.swift @@ -0,0 +1,46 @@ +// +// AppDelegate.swift +// RegistrationApplication +// +// Created by Ильмир Шарафутдинов on 01/07/2023. +// Copyright © 2023 Ильмир Шарафутдинов. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + +} + diff --git a/RegistrationApplication/RegistrationApplication/Assets.xcassets/AppIcon.appiconset/Contents.json b/RegistrationApplication/RegistrationApplication/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/RegistrationApplication/RegistrationApplication/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/RegistrationApplication/RegistrationApplication/Assets.xcassets/Contents.json b/RegistrationApplication/RegistrationApplication/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/RegistrationApplication/RegistrationApplication/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/RegistrationApplication/RegistrationApplication/Assets.xcassets/i.imageset/184-1845225_7-zip-logo-png.png b/RegistrationApplication/RegistrationApplication/Assets.xcassets/i.imageset/184-1845225_7-zip-logo-png.png new file mode 100644 index 0000000..e49286b Binary files /dev/null and b/RegistrationApplication/RegistrationApplication/Assets.xcassets/i.imageset/184-1845225_7-zip-logo-png.png differ diff --git a/RegistrationApplication/RegistrationApplication/Assets.xcassets/i.imageset/Contents.json b/RegistrationApplication/RegistrationApplication/Assets.xcassets/i.imageset/Contents.json new file mode 100644 index 0000000..ff75d9a --- /dev/null +++ b/RegistrationApplication/RegistrationApplication/Assets.xcassets/i.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "184-1845225_7-zip-logo-png.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/RegistrationApplication/RegistrationApplication/Assets.xcassets/ikonka.imageset/29331462_z-letter-png-logo.png b/RegistrationApplication/RegistrationApplication/Assets.xcassets/ikonka.imageset/29331462_z-letter-png-logo.png new file mode 100644 index 0000000..fba882c Binary files /dev/null and b/RegistrationApplication/RegistrationApplication/Assets.xcassets/ikonka.imageset/29331462_z-letter-png-logo.png differ diff --git a/RegistrationApplication/RegistrationApplication/Assets.xcassets/ikonka.imageset/Contents.json b/RegistrationApplication/RegistrationApplication/Assets.xcassets/ikonka.imageset/Contents.json new file mode 100644 index 0000000..eeb3092 --- /dev/null +++ b/RegistrationApplication/RegistrationApplication/Assets.xcassets/ikonka.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "29331462_z-letter-png-logo.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/RegistrationApplication/RegistrationApplication/Base.lproj/LaunchScreen.storyboard b/RegistrationApplication/RegistrationApplication/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..bfa3612 --- /dev/null +++ b/RegistrationApplication/RegistrationApplication/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/RegistrationApplication/RegistrationApplication/Base.lproj/Main.storyboard b/RegistrationApplication/RegistrationApplication/Base.lproj/Main.storyboard new file mode 100644 index 0000000..249a6ce --- /dev/null +++ b/RegistrationApplication/RegistrationApplication/Base.lproj/Main.storyboard @@ -0,0 +1,155 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/RegistrationApplication/RegistrationApplication/ErrorViewController.swift b/RegistrationApplication/RegistrationApplication/ErrorViewController.swift new file mode 100644 index 0000000..0679de3 --- /dev/null +++ b/RegistrationApplication/RegistrationApplication/ErrorViewController.swift @@ -0,0 +1,35 @@ +// +// ErrorViewController.swift +// RegistrationApplication +// +// Created by Ильмир Шарафутдинов on 02/07/2023. +// Copyright © 2023 Ильмир Шарафутдинов. All rights reserved. +// + +import UIKit + +class ErrorViewController: UIViewController { + @IBOutlet weak var errorLabel: UILabel! + @IBOutlet weak var baton: UIButton! + + override func viewDidLoad() { + super.viewDidLoad() + baton.layer.cornerRadius = baton.frame.height / 2 + + } + + @IBAction func errorButton(_ sender: UIButton) { + dismiss(animated: true, completion: nil) + } + + /* + // MARK: - Navigation + + // In a storyboard-based application, you will often want to do a little preparation before navigation + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destination. + // Pass the selected object to the new view controller. + } + */ + +} diff --git a/RegistrationApplication/RegistrationApplication/Info.plist b/RegistrationApplication/RegistrationApplication/Info.plist new file mode 100644 index 0000000..16be3b6 --- /dev/null +++ b/RegistrationApplication/RegistrationApplication/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/RegistrationApplication/RegistrationApplication/PhoneNumberTableViewCell.swift b/RegistrationApplication/RegistrationApplication/PhoneNumberTableViewCell.swift new file mode 100644 index 0000000..79738cb --- /dev/null +++ b/RegistrationApplication/RegistrationApplication/PhoneNumberTableViewCell.swift @@ -0,0 +1,19 @@ +// +// PhoneNumberTableViewCell.swift +// RegistrationApplication +// +// Created by Ильмир Шарафутдинов on 02/07/2023. +// Copyright © 2023 Ильмир Шарафутдинов. All rights reserved. +// + +import UIKit + +class PhoneNumberTableViewCell: UITableViewCell { + + override func awakeFromNib() { + super.awakeFromNib() + // Initialization code + } + + +} diff --git a/RegistrationApplication/RegistrationApplication/PhoneNumbersTableViewController.swift b/RegistrationApplication/RegistrationApplication/PhoneNumbersTableViewController.swift new file mode 100644 index 0000000..19bb56d --- /dev/null +++ b/RegistrationApplication/RegistrationApplication/PhoneNumbersTableViewController.swift @@ -0,0 +1,35 @@ +// +// PhoneNumbersTableViewController.swift +// RegistrationApplication +// +// Created by Ильмир Шарафутдинов on 01/07/2023. +// Copyright © 2023 Ильмир Шарафутдинов. All rights reserved. +// + +import UIKit + +class PhoneNumbersTableViewController: UITableViewController { + + var phoneNumbersArray: [String] = [] + + override func viewDidLoad() { + super.viewDidLoad() + + tableView.register(PhoneNumberTableViewCell.self, forCellReuseIdentifier: "celll") + } + + // MARK: - Table view data source + + override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + // #warning Incomplete implementation, return the number of rows + return phoneNumbersArray.count + } + + override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + + let cell = tableView.dequeueReusableCell(withIdentifier: "celll") + //cell?.detailTextLabel?.text = phoneNumbersArray[indexPath.row] + cell?.textLabel?.text = phoneNumbersArray[indexPath.row] + return cell ?? UITableViewCell() + } +} diff --git a/RegistrationApplication/RegistrationApplication/ViewController.swift b/RegistrationApplication/RegistrationApplication/ViewController.swift new file mode 100644 index 0000000..2057d09 --- /dev/null +++ b/RegistrationApplication/RegistrationApplication/ViewController.swift @@ -0,0 +1,51 @@ +// +// ViewController.swift +// RegistrationApplication +// +// Created by Ильмир Шарафутдинов on 01/07/2023. +// Copyright © 2023 Ильмир Шарафутдинов. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + @IBOutlet weak var buttonView: UIButton! + @IBOutlet weak var loginTextField: UITextField! + @IBOutlet weak var passwordTextField: UITextField! + @IBOutlet weak var photoImageView: UIImageView! + + let password: String = "123" + let loginStart: String = "8908" + var phoneNumbersArray: [String] = [] + @IBAction func checkCoincidences(_ sender: Any) { + if password == passwordTextField.text && (loginTextField.text!.prefix(4) == loginStart ) { + phoneNumbersArray.append(loginTextField.text!) + let viewController = PhoneNumbersTableViewController() + viewController.phoneNumbersArray = phoneNumbersArray + navigationController?.pushViewController(viewController, animated: true) + } else { + + let vc = self.storyboard?.instantiateViewController(withIdentifier: "errorvc") as! ErrorViewController + self.present(vc, animated: true, completion: nil) + } + } + override func viewDidLoad() { + super.viewDidLoad() + buttonView.layer.cornerRadius = buttonView.frame.height / 2 + + } + override func viewWillAppear(_ animated: Bool) { + super.viewWillAppear(animated) + } + override func viewDidAppear(_ animated: Bool) { + super.viewDidAppear(animated) + } + override func viewWillDisappear(_ animated: Bool) { + super.viewWillDisappear(animated) + } + override func viewDidDisappear(_ animated: Bool) { + super.viewDidDisappear(animated) + } + +} +