├── README.md ├── iOS_Animation_Test1 ├── Images.xcassets │ ├── plane.imageset │ │ ├── plane@2x.png │ │ ├── plane@3x.png │ │ └── Contents.json │ ├── banner.imageset │ │ ├── banner@2x.png │ │ ├── banner@3x.png │ │ └── Contents.json │ ├── bg-snowy.imageset │ │ ├── bg-snowy@2x.png │ │ ├── bg-snowy@3x.png │ │ └── Contents.json │ ├── bg-sunny.imageset │ │ ├── bg-sunny@2x.png │ │ ├── bg-sunny@3x.png │ │ └── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── iOS_Animation_Test1.xcdatamodeld │ ├── .xccurrentversion │ └── iOS_Animation_Test1.xcdatamodel │ │ └── contents ├── Info.plist ├── ViewController.swift ├── forthViewController.swift ├── secondViewController.swift ├── thirdViewController.swift ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard └── AppDelegate.swift ├── iOS_Animation_Test1.xcodeproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcuserdata │ │ └── xlx.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcshareddata │ │ └── iOS_Animation_Test1.xccheckout ├── xcuserdata │ └── xlx.xcuserdatad │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── iOS_Animation_Test1.xcscheme └── project.pbxproj └── iOS_Animation_Test1Tests ├── Info.plist └── iOS_Animation_Test1Tests.swift /README.md: -------------------------------------------------------------------------------- 1 | # iOS_Animation_Test1 2 | 3 | - This are Source Code of a iOS-Animations Tutorials. 4 | - The address of Tutorials:[http://www.jianshu.com/p/bd7bf438b288] 5 | -------------------------------------------------------------------------------- /iOS_Animation_Test1/Images.xcassets/plane.imageset/plane@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxlx/iOS_Animation_Test1/HEAD/iOS_Animation_Test1/Images.xcassets/plane.imageset/plane@2x.png -------------------------------------------------------------------------------- /iOS_Animation_Test1/Images.xcassets/plane.imageset/plane@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxlx/iOS_Animation_Test1/HEAD/iOS_Animation_Test1/Images.xcassets/plane.imageset/plane@3x.png -------------------------------------------------------------------------------- /iOS_Animation_Test1/Images.xcassets/banner.imageset/banner@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxlx/iOS_Animation_Test1/HEAD/iOS_Animation_Test1/Images.xcassets/banner.imageset/banner@2x.png -------------------------------------------------------------------------------- /iOS_Animation_Test1/Images.xcassets/banner.imageset/banner@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxlx/iOS_Animation_Test1/HEAD/iOS_Animation_Test1/Images.xcassets/banner.imageset/banner@3x.png -------------------------------------------------------------------------------- /iOS_Animation_Test1/Images.xcassets/bg-snowy.imageset/bg-snowy@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxlx/iOS_Animation_Test1/HEAD/iOS_Animation_Test1/Images.xcassets/bg-snowy.imageset/bg-snowy@2x.png -------------------------------------------------------------------------------- /iOS_Animation_Test1/Images.xcassets/bg-snowy.imageset/bg-snowy@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxlx/iOS_Animation_Test1/HEAD/iOS_Animation_Test1/Images.xcassets/bg-snowy.imageset/bg-snowy@3x.png -------------------------------------------------------------------------------- /iOS_Animation_Test1/Images.xcassets/bg-sunny.imageset/bg-sunny@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxlx/iOS_Animation_Test1/HEAD/iOS_Animation_Test1/Images.xcassets/bg-sunny.imageset/bg-sunny@2x.png -------------------------------------------------------------------------------- /iOS_Animation_Test1/Images.xcassets/bg-sunny.imageset/bg-sunny@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxlx/iOS_Animation_Test1/HEAD/iOS_Animation_Test1/Images.xcassets/bg-sunny.imageset/bg-sunny@3x.png -------------------------------------------------------------------------------- /iOS_Animation_Test1.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /iOS_Animation_Test1.xcodeproj/project.xcworkspace/xcuserdata/xlx.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superxlx/iOS_Animation_Test1/HEAD/iOS_Animation_Test1.xcodeproj/project.xcworkspace/xcuserdata/xlx.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /iOS_Animation_Test1/iOS_Animation_Test1.xcdatamodeld/.xccurrentversion: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | _XCCurrentVersionName 6 | iOS_Animation_Test1.xcdatamodel 7 | 8 | 9 | -------------------------------------------------------------------------------- /iOS_Animation_Test1/iOS_Animation_Test1.xcdatamodeld/iOS_Animation_Test1.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /iOS_Animation_Test1/Images.xcassets/banner.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "banner@2x.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x", 15 | "filename" : "banner@3x.png" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /iOS_Animation_Test1/Images.xcassets/plane.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "plane@2x.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x", 15 | "filename" : "plane@3x.png" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /iOS_Animation_Test1/Images.xcassets/bg-snowy.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "bg-snowy@2x.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x", 15 | "filename" : "bg-snowy@3x.png" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /iOS_Animation_Test1/Images.xcassets/bg-sunny.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "bg-sunny@2x.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x", 15 | "filename" : "bg-sunny@3x.png" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /iOS_Animation_Test1.xcodeproj/xcuserdata/xlx.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | iOS_Animation_Test1.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 2AC20F501AEA980E005040AE 16 | 17 | primary 18 | 19 | 20 | 2AC20F681AEA980E005040AE 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /iOS_Animation_Test1Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.xlx.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /iOS_Animation_Test1Tests/iOS_Animation_Test1Tests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // iOS_Animation_Test1Tests.swift 3 | // iOS_Animation_Test1Tests 4 | // 5 | // Created by xlx on 15/4/24. 6 | // Copyright (c) 2015年 xlx. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import XCTest 11 | 12 | class iOS_Animation_Test1Tests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | XCTAssert(true, "Pass") 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measureBlock() { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /iOS_Animation_Test1/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /iOS_Animation_Test1/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.xlx.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /iOS_Animation_Test1.xcodeproj/project.xcworkspace/xcshareddata/iOS_Animation_Test1.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 382B5E54-7CC6-486E-9F9A-C050D2D20773 9 | IDESourceControlProjectName 10 | iOS_Animation_Test1 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | E6A926F0E795CDBA228DF75D3AC1863462150113 14 | https://github.com/superxlx/iOS_Animation_Test1.git 15 | 16 | IDESourceControlProjectPath 17 | iOS_Animation_Test1.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | E6A926F0E795CDBA228DF75D3AC1863462150113 21 | ../.. 22 | 23 | IDESourceControlProjectURL 24 | https://github.com/superxlx/iOS_Animation_Test1.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | E6A926F0E795CDBA228DF75D3AC1863462150113 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | E6A926F0E795CDBA228DF75D3AC1863462150113 36 | IDESourceControlWCCName 37 | iOS_Animation_Test1 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /iOS_Animation_Test1/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // iOS_Animation_Test1 4 | // 5 | // Created by xlx on 15/4/24. 6 | // Copyright (c) 2015年 xlx. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | @IBOutlet weak var animationView3: UIView! 14 | @IBOutlet weak var animationView2: UIView! 15 | @IBOutlet weak var animationView: UIView! 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | // Do any additional setup after loading the view, typically from a nib. 19 | 20 | self.animationView2.alpha = 0 21 | self.animationView3.alpha = 0 22 | UIView.animateWithDuration(5, delay: 0.5, usingSpringWithDamping: 0.5, initialSpringVelocity: 0, options: .Repeat, animations: { () -> Void in 23 | self.animationView.center.y += 100 24 | }) { (Bool) -> Void in 25 | println("finish") 26 | } 27 | UIView.animateWithDuration(5, delay: 0.5, usingSpringWithDamping: 0.5, initialSpringVelocity: 0, options: .Repeat, animations: { () -> Void in 28 | self.animationView2.alpha = 1 29 | }) { (Bool) -> Void in 30 | println("finish") 31 | } 32 | UIView.animateWithDuration(5, delay: 0.5, usingSpringWithDamping: 0.5, initialSpringVelocity: 0, options: .Repeat, animations: { () -> Void in 33 | self.animationView3.center.y -= 100 34 | self.animationView3.alpha = 1 35 | }) { (Bool) -> Void in 36 | println("finish") 37 | } 38 | } 39 | 40 | override func didReceiveMemoryWarning() { 41 | super.didReceiveMemoryWarning() 42 | // Dispose of any resources that can be recreated. 43 | } 44 | 45 | 46 | } 47 | 48 | -------------------------------------------------------------------------------- /iOS_Animation_Test1/forthViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // forthViewController.swift 3 | // iOS_Animation_Test1 4 | // 5 | // Created by xlx on 15/4/25. 6 | // Copyright (c) 2015年 xlx. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class forthViewController: UIViewController { 12 | 13 | @IBOutlet weak var planeImage: UIImageView! 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | 17 | planeDepart() 18 | // Do any additional setup after loading the view. 19 | } 20 | 21 | func planeDepart() { 22 | let originalCenter = planeImage.center 23 | 24 | UIView.animateKeyframesWithDuration(1.5, delay: 0.0, options: .Repeat, animations: { 25 | //add keyframes 26 | 27 | UIView.addKeyframeWithRelativeStartTime(0.0, relativeDuration: 0.25, animations: { 28 | self.planeImage.center.x += 80.0 29 | self.planeImage.center.y -= 10.0 30 | }) 31 | 32 | UIView.addKeyframeWithRelativeStartTime(0.1, relativeDuration: 0.4) { 33 | self.planeImage.transform = CGAffineTransformMakeRotation(CGFloat(-M_PI_4/2)) 34 | } 35 | 36 | UIView.addKeyframeWithRelativeStartTime(0.25, relativeDuration: 0.25) { 37 | self.planeImage.center.x += 100.0 38 | self.planeImage.center.y -= 50.0 39 | self.planeImage.alpha = 0.0 40 | } 41 | 42 | UIView.addKeyframeWithRelativeStartTime(0.51, relativeDuration: 0.01) { 43 | self.planeImage.transform = CGAffineTransformIdentity 44 | self.planeImage.center = CGPoint(x: 0.0, y: originalCenter.y) 45 | } 46 | 47 | UIView.addKeyframeWithRelativeStartTime(0.55, relativeDuration: 0.45) { 48 | self.planeImage.alpha = 1.0 49 | self.planeImage.center = originalCenter 50 | } 51 | 52 | }, completion:nil) 53 | } 54 | 55 | 56 | /* 57 | // MARK: - Navigation 58 | 59 | // In a storyboard-based application, you will often want to do a little preparation before navigation 60 | override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { 61 | // Get the new view controller using segue.destinationViewController. 62 | // Pass the selected object to the new view controller. 63 | } 64 | */ 65 | 66 | } 67 | -------------------------------------------------------------------------------- /iOS_Animation_Test1/secondViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // secondViewController.swift 3 | // iOS_Animation_Test1 4 | // 5 | // Created by xlx on 15/4/25. 6 | // Copyright (c) 2015年 xlx. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | func delay(#seconds: Double, completion:()->()) { 13 | let popTime = dispatch_time(DISPATCH_TIME_NOW, Int64( Double(NSEC_PER_SEC) * seconds )) 14 | 15 | dispatch_after(popTime, dispatch_get_main_queue()) { 16 | completion() 17 | } 18 | } 19 | class secondViewController: UIViewController { 20 | 21 | 22 | let status = UIImageView(image: UIImage(named: "banner")) 23 | let label = UILabel() 24 | let messages = ["Connecting ...", "Authorizing ...", "Sending credentials ...", "Failed"] 25 | var statusPosition = CGPoint.zeroPoint 26 | 27 | 28 | override func viewDidLoad() { 29 | super.viewDidLoad() 30 | status.hidden = true 31 | status.center = CGPoint(x: 160, y: 300) 32 | view.addSubview(status) 33 | 34 | label.frame = CGRect(x: 0.0, y: 0.0, width: status.frame.size.width, height: status.frame.size.height) 35 | label.font = UIFont(name: "HelveticaNeue", size: 18.0) 36 | label.textColor = UIColor(red: 0.89, green: 0.38, blue: 0.0, alpha: 1.0) 37 | label.textAlignment = .Center 38 | status.addSubview(label) 39 | 40 | statusPosition = status.center 41 | 42 | delay(seconds: 1.0) { 43 | self.showMessage(index: 0) 44 | } 45 | 46 | 47 | 48 | // Do any additional setup after loading the view. 49 | } 50 | 51 | override func didReceiveMemoryWarning() { 52 | super.didReceiveMemoryWarning() 53 | // Dispose of any resources that can be recreated. 54 | } 55 | func showMessage(#index: Int) { 56 | label.text = messages[index] 57 | 58 | UIView.transitionWithView(status, duration: 0.33, options: 59 | .CurveEaseOut | .TransitionCurlDown, animations: { 60 | self.status.hidden = false 61 | }, completion: {_ in 62 | //transition completion 63 | delay(seconds: 2.0) { 64 | if index < self.messages.count-1 { 65 | self.removeMessage(index: index) 66 | } else { 67 | //reset form 68 | } 69 | } 70 | }) 71 | } 72 | 73 | func removeMessage(#index: Int) { 74 | UIView.animateWithDuration(0.33, delay: 0.0, options: nil, animations: { 75 | self.status.center.x += self.view.frame.size.width 76 | }, completion: {_ in 77 | self.status.hidden = true 78 | self.status.center = self.statusPosition 79 | 80 | self.showMessage(index: index+1) 81 | }) 82 | } 83 | 84 | 85 | /* 86 | // MARK: - Navigation 87 | 88 | // In a storyboard-based application, you will often want to do a little preparation before navigation 89 | override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { 90 | // Get the new view controller using segue.destinationViewController. 91 | // Pass the selected object to the new view controller. 92 | } 93 | */ 94 | 95 | } 96 | -------------------------------------------------------------------------------- /iOS_Animation_Test1/thirdViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // thirdViewController.swift 3 | // iOS_Animation_Test1 4 | // 5 | // Created by xlx on 15/4/25. 6 | // Copyright (c) 2015年 xlx. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import QuartzCore 11 | 12 | enum AnimationDirection: Int { 13 | case Positive = 1 14 | case Negative = -1 15 | } 16 | class thirdViewController: UIViewController { 17 | 18 | @IBOutlet weak var bgImage: UIImageView! 19 | @IBOutlet weak var label1: UILabel! 20 | override func viewDidLoad() { 21 | super.viewDidLoad() 22 | self.repeat1() 23 | // Do any additional setup after loading the view. 24 | } 25 | func repeat1(){ 26 | delay(seconds: 1){ 27 | self.cubeTransition(label: self.label1, text: "SuperXlx", direction: AnimationDirection.Positive) 28 | self.fadeImageView(self.bgImage, 29 | toImage: UIImage(named: "bg-sunny")!) 30 | self.repeat2() 31 | } 32 | } 33 | func repeat2(){ 34 | delay(seconds: 1){ 35 | self.fadeImageView(self.bgImage, 36 | toImage: UIImage(named: "bg-snowy")!) 37 | self.cubeTransition(label: self.label1, text: "StrongX", direction: AnimationDirection.Negative) 38 | self.repeat1() 39 | } 40 | } 41 | override func didReceiveMemoryWarning() { 42 | super.didReceiveMemoryWarning() 43 | // Dispose of any resources that can be recreated. 44 | } 45 | func fadeImageView(imageView: UIImageView, toImage: UIImage) { 46 | 47 | UIView.transitionWithView(imageView, duration: 1.0, 48 | options: .TransitionCrossDissolve, animations: { 49 | imageView.image = toImage 50 | }, completion: nil) 51 | 52 | } 53 | 54 | func cubeTransition(#label: UILabel, text: String, direction: AnimationDirection) { 55 | 56 | let auxLabel = UILabel(frame: label.frame) 57 | auxLabel.text = text 58 | auxLabel.font = label.font 59 | auxLabel.textAlignment = label.textAlignment 60 | auxLabel.textColor = label.textColor 61 | // auxLabel.backgroundColor = label.backgroundColor 62 | 63 | let auxLabelOffset = CGFloat(direction.rawValue) * 64 | label.frame.size.height/2.0 65 | 66 | auxLabel.transform = CGAffineTransformConcat( 67 | CGAffineTransformMakeScale(1.0, 0.1), 68 | CGAffineTransformMakeTranslation(0.0, auxLabelOffset)) 69 | 70 | label.superview!.addSubview(auxLabel) 71 | 72 | UIView.animateWithDuration(0.5, delay: 0.0, options: .CurveEaseOut, animations: { 73 | auxLabel.transform = CGAffineTransformIdentity 74 | label.transform = CGAffineTransformConcat( 75 | CGAffineTransformMakeScale(1.0, 0.1), 76 | CGAffineTransformMakeTranslation(0.0, -auxLabelOffset)) 77 | }, completion: {_ in 78 | label.text = auxLabel.text 79 | label.transform = CGAffineTransformIdentity 80 | 81 | auxLabel.removeFromSuperview() 82 | }) 83 | 84 | } 85 | /* 86 | // MARK: - Navigation 87 | 88 | // In a storyboard-based application, you will often want to do a little preparation before navigation 89 | override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { 90 | // Get the new view controller using segue.destinationViewController. 91 | // Pass the selected object to the new view controller. 92 | } 93 | */ 94 | 95 | } 96 | -------------------------------------------------------------------------------- /iOS_Animation_Test1/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /iOS_Animation_Test1.xcodeproj/xcuserdata/xlx.xcuserdatad/xcschemes/iOS_Animation_Test1.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /iOS_Animation_Test1/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // iOS_Animation_Test1 4 | // 5 | // Created by xlx on 15/4/24. 6 | // Copyright (c) 2015年 xlx. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CoreData 11 | 12 | @UIApplicationMain 13 | class AppDelegate: UIResponder, UIApplicationDelegate { 14 | 15 | var window: UIWindow? 16 | 17 | 18 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 19 | // Override point for customization after application launch. 20 | return true 21 | } 22 | 23 | func applicationWillResignActive(application: UIApplication) { 24 | // 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. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | func applicationDidEnterBackground(application: UIApplication) { 29 | // 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. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | func applicationWillEnterForeground(application: UIApplication) { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | func applicationDidBecomeActive(application: UIApplication) { 38 | // 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. 39 | } 40 | 41 | func applicationWillTerminate(application: UIApplication) { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | // Saves changes in the application's managed object context before the application terminates. 44 | self.saveContext() 45 | } 46 | 47 | // MARK: - Core Data stack 48 | 49 | lazy var applicationDocumentsDirectory: NSURL = { 50 | // The directory the application uses to store the Core Data store file. This code uses a directory named "com.xlx.iOS_Animation_Test1" in the application's documents Application Support directory. 51 | let urls = NSFileManager.defaultManager().URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask) 52 | return urls[urls.count-1] as! NSURL 53 | }() 54 | 55 | lazy var managedObjectModel: NSManagedObjectModel = { 56 | // The managed object model for the application. This property is not optional. It is a fatal error for the application not to be able to find and load its model. 57 | let modelURL = NSBundle.mainBundle().URLForResource("iOS_Animation_Test1", withExtension: "momd")! 58 | return NSManagedObjectModel(contentsOfURL: modelURL)! 59 | }() 60 | 61 | lazy var persistentStoreCoordinator: NSPersistentStoreCoordinator? = { 62 | // The persistent store coordinator for the application. This implementation creates and return a coordinator, having added the store for the application to it. This property is optional since there are legitimate error conditions that could cause the creation of the store to fail. 63 | // Create the coordinator and store 64 | var coordinator: NSPersistentStoreCoordinator? = NSPersistentStoreCoordinator(managedObjectModel: self.managedObjectModel) 65 | let url = self.applicationDocumentsDirectory.URLByAppendingPathComponent("iOS_Animation_Test1.sqlite") 66 | var error: NSError? = nil 67 | var failureReason = "There was an error creating or loading the application's saved data." 68 | if coordinator!.addPersistentStoreWithType(NSSQLiteStoreType, configuration: nil, URL: url, options: nil, error: &error) == nil { 69 | coordinator = nil 70 | // Report any error we got. 71 | var dict = [String: AnyObject]() 72 | dict[NSLocalizedDescriptionKey] = "Failed to initialize the application's saved data" 73 | dict[NSLocalizedFailureReasonErrorKey] = failureReason 74 | dict[NSUnderlyingErrorKey] = error 75 | error = NSError(domain: "YOUR_ERROR_DOMAIN", code: 9999, userInfo: dict) 76 | // Replace this with code to handle the error appropriately. 77 | // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. 78 | NSLog("Unresolved error \(error), \(error!.userInfo)") 79 | abort() 80 | } 81 | 82 | return coordinator 83 | }() 84 | 85 | lazy var managedObjectContext: NSManagedObjectContext? = { 86 | // Returns the managed object context for the application (which is already bound to the persistent store coordinator for the application.) This property is optional since there are legitimate error conditions that could cause the creation of the context to fail. 87 | let coordinator = self.persistentStoreCoordinator 88 | if coordinator == nil { 89 | return nil 90 | } 91 | var managedObjectContext = NSManagedObjectContext() 92 | managedObjectContext.persistentStoreCoordinator = coordinator 93 | return managedObjectContext 94 | }() 95 | 96 | // MARK: - Core Data Saving support 97 | 98 | func saveContext () { 99 | if let moc = self.managedObjectContext { 100 | var error: NSError? = nil 101 | if moc.hasChanges && !moc.save(&error) { 102 | // Replace this implementation with code to handle the error appropriately. 103 | // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. 104 | NSLog("Unresolved error \(error), \(error!.userInfo)") 105 | abort() 106 | } 107 | } 108 | } 109 | 110 | } 111 | 112 | -------------------------------------------------------------------------------- /iOS_Animation_Test1/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 100 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | -------------------------------------------------------------------------------- /iOS_Animation_Test1.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2A2BA4111AEB75B300A042FB /* secondViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A2BA4101AEB75B300A042FB /* secondViewController.swift */; }; 11 | 2A61F65B1AEBB90C0028C2C6 /* thirdViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A61F65A1AEBB90C0028C2C6 /* thirdViewController.swift */; }; 12 | 2A61F65D1AEBE39C0028C2C6 /* forthViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A61F65C1AEBE39C0028C2C6 /* forthViewController.swift */; }; 13 | 2AC20F571AEA980E005040AE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2AC20F561AEA980E005040AE /* AppDelegate.swift */; }; 14 | 2AC20F5A1AEA980E005040AE /* iOS_Animation_Test1.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 2AC20F581AEA980E005040AE /* iOS_Animation_Test1.xcdatamodeld */; }; 15 | 2AC20F5C1AEA980E005040AE /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2AC20F5B1AEA980E005040AE /* ViewController.swift */; }; 16 | 2AC20F5F1AEA980E005040AE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2AC20F5D1AEA980E005040AE /* Main.storyboard */; }; 17 | 2AC20F611AEA980E005040AE /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2AC20F601AEA980E005040AE /* Images.xcassets */; }; 18 | 2AC20F641AEA980E005040AE /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2AC20F621AEA980E005040AE /* LaunchScreen.xib */; }; 19 | 2AC20F701AEA980E005040AE /* iOS_Animation_Test1Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2AC20F6F1AEA980E005040AE /* iOS_Animation_Test1Tests.swift */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 2AC20F6A1AEA980E005040AE /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = 2AC20F491AEA980D005040AE /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 2AC20F501AEA980E005040AE; 28 | remoteInfo = iOS_Animation_Test1; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 2A2BA4101AEB75B300A042FB /* secondViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = secondViewController.swift; sourceTree = ""; }; 34 | 2A61F65A1AEBB90C0028C2C6 /* thirdViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = thirdViewController.swift; sourceTree = ""; }; 35 | 2A61F65C1AEBE39C0028C2C6 /* forthViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = forthViewController.swift; sourceTree = ""; }; 36 | 2AC20F511AEA980E005040AE /* iOS_Animation_Test1.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iOS_Animation_Test1.app; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 2AC20F551AEA980E005040AE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 38 | 2AC20F561AEA980E005040AE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 39 | 2AC20F591AEA980E005040AE /* iOS_Animation_Test1.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = iOS_Animation_Test1.xcdatamodel; sourceTree = ""; }; 40 | 2AC20F5B1AEA980E005040AE /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 41 | 2AC20F5E1AEA980E005040AE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 2AC20F601AEA980E005040AE /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 43 | 2AC20F631AEA980E005040AE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 44 | 2AC20F691AEA980E005040AE /* iOS_Animation_Test1Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = iOS_Animation_Test1Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 2AC20F6E1AEA980E005040AE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | 2AC20F6F1AEA980E005040AE /* iOS_Animation_Test1Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iOS_Animation_Test1Tests.swift; sourceTree = ""; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | 2AC20F4E1AEA980E005040AE /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | ); 55 | runOnlyForDeploymentPostprocessing = 0; 56 | }; 57 | 2AC20F661AEA980E005040AE /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | /* End PBXFrameworksBuildPhase section */ 65 | 66 | /* Begin PBXGroup section */ 67 | 2AC20F481AEA980D005040AE = { 68 | isa = PBXGroup; 69 | children = ( 70 | 2AC20F531AEA980E005040AE /* iOS_Animation_Test1 */, 71 | 2AC20F6C1AEA980E005040AE /* iOS_Animation_Test1Tests */, 72 | 2AC20F521AEA980E005040AE /* Products */, 73 | ); 74 | sourceTree = ""; 75 | }; 76 | 2AC20F521AEA980E005040AE /* Products */ = { 77 | isa = PBXGroup; 78 | children = ( 79 | 2AC20F511AEA980E005040AE /* iOS_Animation_Test1.app */, 80 | 2AC20F691AEA980E005040AE /* iOS_Animation_Test1Tests.xctest */, 81 | ); 82 | name = Products; 83 | sourceTree = ""; 84 | }; 85 | 2AC20F531AEA980E005040AE /* iOS_Animation_Test1 */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | 2AC20F561AEA980E005040AE /* AppDelegate.swift */, 89 | 2AC20F5B1AEA980E005040AE /* ViewController.swift */, 90 | 2A2BA4101AEB75B300A042FB /* secondViewController.swift */, 91 | 2A61F65A1AEBB90C0028C2C6 /* thirdViewController.swift */, 92 | 2A61F65C1AEBE39C0028C2C6 /* forthViewController.swift */, 93 | 2AC20F5D1AEA980E005040AE /* Main.storyboard */, 94 | 2AC20F601AEA980E005040AE /* Images.xcassets */, 95 | 2AC20F621AEA980E005040AE /* LaunchScreen.xib */, 96 | 2AC20F581AEA980E005040AE /* iOS_Animation_Test1.xcdatamodeld */, 97 | 2AC20F541AEA980E005040AE /* Supporting Files */, 98 | ); 99 | path = iOS_Animation_Test1; 100 | sourceTree = ""; 101 | }; 102 | 2AC20F541AEA980E005040AE /* Supporting Files */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 2AC20F551AEA980E005040AE /* Info.plist */, 106 | ); 107 | name = "Supporting Files"; 108 | sourceTree = ""; 109 | }; 110 | 2AC20F6C1AEA980E005040AE /* iOS_Animation_Test1Tests */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 2AC20F6F1AEA980E005040AE /* iOS_Animation_Test1Tests.swift */, 114 | 2AC20F6D1AEA980E005040AE /* Supporting Files */, 115 | ); 116 | path = iOS_Animation_Test1Tests; 117 | sourceTree = ""; 118 | }; 119 | 2AC20F6D1AEA980E005040AE /* Supporting Files */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | 2AC20F6E1AEA980E005040AE /* Info.plist */, 123 | ); 124 | name = "Supporting Files"; 125 | sourceTree = ""; 126 | }; 127 | /* End PBXGroup section */ 128 | 129 | /* Begin PBXNativeTarget section */ 130 | 2AC20F501AEA980E005040AE /* iOS_Animation_Test1 */ = { 131 | isa = PBXNativeTarget; 132 | buildConfigurationList = 2AC20F731AEA980E005040AE /* Build configuration list for PBXNativeTarget "iOS_Animation_Test1" */; 133 | buildPhases = ( 134 | 2AC20F4D1AEA980E005040AE /* Sources */, 135 | 2AC20F4E1AEA980E005040AE /* Frameworks */, 136 | 2AC20F4F1AEA980E005040AE /* Resources */, 137 | ); 138 | buildRules = ( 139 | ); 140 | dependencies = ( 141 | ); 142 | name = iOS_Animation_Test1; 143 | productName = iOS_Animation_Test1; 144 | productReference = 2AC20F511AEA980E005040AE /* iOS_Animation_Test1.app */; 145 | productType = "com.apple.product-type.application"; 146 | }; 147 | 2AC20F681AEA980E005040AE /* iOS_Animation_Test1Tests */ = { 148 | isa = PBXNativeTarget; 149 | buildConfigurationList = 2AC20F761AEA980E005040AE /* Build configuration list for PBXNativeTarget "iOS_Animation_Test1Tests" */; 150 | buildPhases = ( 151 | 2AC20F651AEA980E005040AE /* Sources */, 152 | 2AC20F661AEA980E005040AE /* Frameworks */, 153 | 2AC20F671AEA980E005040AE /* Resources */, 154 | ); 155 | buildRules = ( 156 | ); 157 | dependencies = ( 158 | 2AC20F6B1AEA980E005040AE /* PBXTargetDependency */, 159 | ); 160 | name = iOS_Animation_Test1Tests; 161 | productName = iOS_Animation_Test1Tests; 162 | productReference = 2AC20F691AEA980E005040AE /* iOS_Animation_Test1Tests.xctest */; 163 | productType = "com.apple.product-type.bundle.unit-test"; 164 | }; 165 | /* End PBXNativeTarget section */ 166 | 167 | /* Begin PBXProject section */ 168 | 2AC20F491AEA980D005040AE /* Project object */ = { 169 | isa = PBXProject; 170 | attributes = { 171 | LastUpgradeCheck = 0630; 172 | ORGANIZATIONNAME = xlx; 173 | TargetAttributes = { 174 | 2AC20F501AEA980E005040AE = { 175 | CreatedOnToolsVersion = 6.3; 176 | }; 177 | 2AC20F681AEA980E005040AE = { 178 | CreatedOnToolsVersion = 6.3; 179 | TestTargetID = 2AC20F501AEA980E005040AE; 180 | }; 181 | }; 182 | }; 183 | buildConfigurationList = 2AC20F4C1AEA980D005040AE /* Build configuration list for PBXProject "iOS_Animation_Test1" */; 184 | compatibilityVersion = "Xcode 3.2"; 185 | developmentRegion = English; 186 | hasScannedForEncodings = 0; 187 | knownRegions = ( 188 | en, 189 | Base, 190 | ); 191 | mainGroup = 2AC20F481AEA980D005040AE; 192 | productRefGroup = 2AC20F521AEA980E005040AE /* Products */; 193 | projectDirPath = ""; 194 | projectRoot = ""; 195 | targets = ( 196 | 2AC20F501AEA980E005040AE /* iOS_Animation_Test1 */, 197 | 2AC20F681AEA980E005040AE /* iOS_Animation_Test1Tests */, 198 | ); 199 | }; 200 | /* End PBXProject section */ 201 | 202 | /* Begin PBXResourcesBuildPhase section */ 203 | 2AC20F4F1AEA980E005040AE /* Resources */ = { 204 | isa = PBXResourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 2AC20F5F1AEA980E005040AE /* Main.storyboard in Resources */, 208 | 2AC20F641AEA980E005040AE /* LaunchScreen.xib in Resources */, 209 | 2AC20F611AEA980E005040AE /* Images.xcassets in Resources */, 210 | ); 211 | runOnlyForDeploymentPostprocessing = 0; 212 | }; 213 | 2AC20F671AEA980E005040AE /* Resources */ = { 214 | isa = PBXResourcesBuildPhase; 215 | buildActionMask = 2147483647; 216 | files = ( 217 | ); 218 | runOnlyForDeploymentPostprocessing = 0; 219 | }; 220 | /* End PBXResourcesBuildPhase section */ 221 | 222 | /* Begin PBXSourcesBuildPhase section */ 223 | 2AC20F4D1AEA980E005040AE /* Sources */ = { 224 | isa = PBXSourcesBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | 2A2BA4111AEB75B300A042FB /* secondViewController.swift in Sources */, 228 | 2AC20F5C1AEA980E005040AE /* ViewController.swift in Sources */, 229 | 2A61F65D1AEBE39C0028C2C6 /* forthViewController.swift in Sources */, 230 | 2A61F65B1AEBB90C0028C2C6 /* thirdViewController.swift in Sources */, 231 | 2AC20F5A1AEA980E005040AE /* iOS_Animation_Test1.xcdatamodeld in Sources */, 232 | 2AC20F571AEA980E005040AE /* AppDelegate.swift in Sources */, 233 | ); 234 | runOnlyForDeploymentPostprocessing = 0; 235 | }; 236 | 2AC20F651AEA980E005040AE /* Sources */ = { 237 | isa = PBXSourcesBuildPhase; 238 | buildActionMask = 2147483647; 239 | files = ( 240 | 2AC20F701AEA980E005040AE /* iOS_Animation_Test1Tests.swift in Sources */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | /* End PBXSourcesBuildPhase section */ 245 | 246 | /* Begin PBXTargetDependency section */ 247 | 2AC20F6B1AEA980E005040AE /* PBXTargetDependency */ = { 248 | isa = PBXTargetDependency; 249 | target = 2AC20F501AEA980E005040AE /* iOS_Animation_Test1 */; 250 | targetProxy = 2AC20F6A1AEA980E005040AE /* PBXContainerItemProxy */; 251 | }; 252 | /* End PBXTargetDependency section */ 253 | 254 | /* Begin PBXVariantGroup section */ 255 | 2AC20F5D1AEA980E005040AE /* Main.storyboard */ = { 256 | isa = PBXVariantGroup; 257 | children = ( 258 | 2AC20F5E1AEA980E005040AE /* Base */, 259 | ); 260 | name = Main.storyboard; 261 | sourceTree = ""; 262 | }; 263 | 2AC20F621AEA980E005040AE /* LaunchScreen.xib */ = { 264 | isa = PBXVariantGroup; 265 | children = ( 266 | 2AC20F631AEA980E005040AE /* Base */, 267 | ); 268 | name = LaunchScreen.xib; 269 | sourceTree = ""; 270 | }; 271 | /* End PBXVariantGroup section */ 272 | 273 | /* Begin XCBuildConfiguration section */ 274 | 2AC20F711AEA980E005040AE /* Debug */ = { 275 | isa = XCBuildConfiguration; 276 | buildSettings = { 277 | ALWAYS_SEARCH_USER_PATHS = NO; 278 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 279 | CLANG_CXX_LIBRARY = "libc++"; 280 | CLANG_ENABLE_MODULES = YES; 281 | CLANG_ENABLE_OBJC_ARC = YES; 282 | CLANG_WARN_BOOL_CONVERSION = YES; 283 | CLANG_WARN_CONSTANT_CONVERSION = YES; 284 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 285 | CLANG_WARN_EMPTY_BODY = YES; 286 | CLANG_WARN_ENUM_CONVERSION = YES; 287 | CLANG_WARN_INT_CONVERSION = YES; 288 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 289 | CLANG_WARN_UNREACHABLE_CODE = YES; 290 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 291 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 292 | COPY_PHASE_STRIP = NO; 293 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 294 | ENABLE_STRICT_OBJC_MSGSEND = YES; 295 | GCC_C_LANGUAGE_STANDARD = gnu99; 296 | GCC_DYNAMIC_NO_PIC = NO; 297 | GCC_NO_COMMON_BLOCKS = YES; 298 | GCC_OPTIMIZATION_LEVEL = 0; 299 | GCC_PREPROCESSOR_DEFINITIONS = ( 300 | "DEBUG=1", 301 | "$(inherited)", 302 | ); 303 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 304 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 305 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 306 | GCC_WARN_UNDECLARED_SELECTOR = YES; 307 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 308 | GCC_WARN_UNUSED_FUNCTION = YES; 309 | GCC_WARN_UNUSED_VARIABLE = YES; 310 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 311 | MTL_ENABLE_DEBUG_INFO = YES; 312 | ONLY_ACTIVE_ARCH = YES; 313 | SDKROOT = iphoneos; 314 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 315 | TARGETED_DEVICE_FAMILY = "1,2"; 316 | }; 317 | name = Debug; 318 | }; 319 | 2AC20F721AEA980E005040AE /* Release */ = { 320 | isa = XCBuildConfiguration; 321 | buildSettings = { 322 | ALWAYS_SEARCH_USER_PATHS = NO; 323 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 324 | CLANG_CXX_LIBRARY = "libc++"; 325 | CLANG_ENABLE_MODULES = YES; 326 | CLANG_ENABLE_OBJC_ARC = YES; 327 | CLANG_WARN_BOOL_CONVERSION = YES; 328 | CLANG_WARN_CONSTANT_CONVERSION = YES; 329 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 330 | CLANG_WARN_EMPTY_BODY = YES; 331 | CLANG_WARN_ENUM_CONVERSION = YES; 332 | CLANG_WARN_INT_CONVERSION = YES; 333 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 334 | CLANG_WARN_UNREACHABLE_CODE = YES; 335 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 336 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 337 | COPY_PHASE_STRIP = NO; 338 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 339 | ENABLE_NS_ASSERTIONS = NO; 340 | ENABLE_STRICT_OBJC_MSGSEND = YES; 341 | GCC_C_LANGUAGE_STANDARD = gnu99; 342 | GCC_NO_COMMON_BLOCKS = YES; 343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 345 | GCC_WARN_UNDECLARED_SELECTOR = YES; 346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 347 | GCC_WARN_UNUSED_FUNCTION = YES; 348 | GCC_WARN_UNUSED_VARIABLE = YES; 349 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 350 | MTL_ENABLE_DEBUG_INFO = NO; 351 | SDKROOT = iphoneos; 352 | TARGETED_DEVICE_FAMILY = "1,2"; 353 | VALIDATE_PRODUCT = YES; 354 | }; 355 | name = Release; 356 | }; 357 | 2AC20F741AEA980E005040AE /* Debug */ = { 358 | isa = XCBuildConfiguration; 359 | buildSettings = { 360 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 361 | INFOPLIST_FILE = iOS_Animation_Test1/Info.plist; 362 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 363 | PRODUCT_NAME = "$(TARGET_NAME)"; 364 | }; 365 | name = Debug; 366 | }; 367 | 2AC20F751AEA980E005040AE /* Release */ = { 368 | isa = XCBuildConfiguration; 369 | buildSettings = { 370 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 371 | INFOPLIST_FILE = iOS_Animation_Test1/Info.plist; 372 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 373 | PRODUCT_NAME = "$(TARGET_NAME)"; 374 | }; 375 | name = Release; 376 | }; 377 | 2AC20F771AEA980E005040AE /* Debug */ = { 378 | isa = XCBuildConfiguration; 379 | buildSettings = { 380 | BUNDLE_LOADER = "$(TEST_HOST)"; 381 | FRAMEWORK_SEARCH_PATHS = ( 382 | "$(SDKROOT)/Developer/Library/Frameworks", 383 | "$(inherited)", 384 | ); 385 | GCC_PREPROCESSOR_DEFINITIONS = ( 386 | "DEBUG=1", 387 | "$(inherited)", 388 | ); 389 | INFOPLIST_FILE = iOS_Animation_Test1Tests/Info.plist; 390 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 391 | PRODUCT_NAME = "$(TARGET_NAME)"; 392 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/iOS_Animation_Test1.app/iOS_Animation_Test1"; 393 | }; 394 | name = Debug; 395 | }; 396 | 2AC20F781AEA980E005040AE /* Release */ = { 397 | isa = XCBuildConfiguration; 398 | buildSettings = { 399 | BUNDLE_LOADER = "$(TEST_HOST)"; 400 | FRAMEWORK_SEARCH_PATHS = ( 401 | "$(SDKROOT)/Developer/Library/Frameworks", 402 | "$(inherited)", 403 | ); 404 | INFOPLIST_FILE = iOS_Animation_Test1Tests/Info.plist; 405 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 406 | PRODUCT_NAME = "$(TARGET_NAME)"; 407 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/iOS_Animation_Test1.app/iOS_Animation_Test1"; 408 | }; 409 | name = Release; 410 | }; 411 | /* End XCBuildConfiguration section */ 412 | 413 | /* Begin XCConfigurationList section */ 414 | 2AC20F4C1AEA980D005040AE /* Build configuration list for PBXProject "iOS_Animation_Test1" */ = { 415 | isa = XCConfigurationList; 416 | buildConfigurations = ( 417 | 2AC20F711AEA980E005040AE /* Debug */, 418 | 2AC20F721AEA980E005040AE /* Release */, 419 | ); 420 | defaultConfigurationIsVisible = 0; 421 | defaultConfigurationName = Release; 422 | }; 423 | 2AC20F731AEA980E005040AE /* Build configuration list for PBXNativeTarget "iOS_Animation_Test1" */ = { 424 | isa = XCConfigurationList; 425 | buildConfigurations = ( 426 | 2AC20F741AEA980E005040AE /* Debug */, 427 | 2AC20F751AEA980E005040AE /* Release */, 428 | ); 429 | defaultConfigurationIsVisible = 0; 430 | defaultConfigurationName = Release; 431 | }; 432 | 2AC20F761AEA980E005040AE /* Build configuration list for PBXNativeTarget "iOS_Animation_Test1Tests" */ = { 433 | isa = XCConfigurationList; 434 | buildConfigurations = ( 435 | 2AC20F771AEA980E005040AE /* Debug */, 436 | 2AC20F781AEA980E005040AE /* Release */, 437 | ); 438 | defaultConfigurationIsVisible = 0; 439 | defaultConfigurationName = Release; 440 | }; 441 | /* End XCConfigurationList section */ 442 | 443 | /* Begin XCVersionGroup section */ 444 | 2AC20F581AEA980E005040AE /* iOS_Animation_Test1.xcdatamodeld */ = { 445 | isa = XCVersionGroup; 446 | children = ( 447 | 2AC20F591AEA980E005040AE /* iOS_Animation_Test1.xcdatamodel */, 448 | ); 449 | currentVersion = 2AC20F591AEA980E005040AE /* iOS_Animation_Test1.xcdatamodel */; 450 | path = iOS_Animation_Test1.xcdatamodeld; 451 | sourceTree = ""; 452 | versionGroupType = wrapper.xcdatamodel; 453 | }; 454 | /* End XCVersionGroup section */ 455 | }; 456 | rootObject = 2AC20F491AEA980D005040AE /* Project object */; 457 | } 458 | --------------------------------------------------------------------------------