├── .gitignore ├── README.md ├── 第一天秒表 ├── SimpleStopWatch.gif ├── Swift_Text_One.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── Swift_Text_One │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ ├── pause.imageset │ │ ├── Contents.json │ │ └── pause.pdf │ └── play.imageset │ │ ├── Contents.json │ │ └── play.pdf │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── File.swift │ ├── Info.plist │ └── ViewController.swift ├── 第七天音乐播放和渐变图层 ├── 第七天音乐播放和渐变图层.gif ├── 第七天音乐播放和渐变图层.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 第七天音乐播放和渐变图层 │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ └── music play.imageset │ │ ├── Contents.json │ │ ├── music play.png │ │ ├── music play@2x.png │ │ └── music play@3x.png │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Ecstasy.mp3 │ ├── Info.plist │ ├── Pch.swift │ └── ViewController.swift ├── 第三天自定义cell ├── playvideo.gif ├── 第三天自定义cell.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 第三天自定义cell │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ ├── playBtn.imageset │ │ ├── Contents.json │ │ ├── playBtn.png │ │ ├── playBtn@2x.png │ │ └── playBtn@3x.png │ ├── videoScreenshot01.imageset │ │ ├── Contents.json │ │ ├── videoScreenshot01.png │ │ ├── videoScreenshot01@2x.png │ │ └── videoScreenshot01@3x.png │ ├── videoScreenshot02.imageset │ │ ├── Contents.json │ │ ├── videoScreenshot02.png │ │ ├── videoScreenshot02@2x.png │ │ └── videoScreenshot02@3x.png │ ├── videoScreenshot03.imageset │ │ ├── Contents.json │ │ ├── videoScreenshot03.png │ │ ├── videoScreenshot03@2x.png │ │ └── videoScreenshot03@3x.png │ ├── videoScreenshot04.imageset │ │ ├── Contents.json │ │ ├── videoScreenshot04.png │ │ ├── videoScreenshot04@2x.png │ │ └── videoScreenshot04@3x.png │ ├── videoScreenshot05.imageset │ │ ├── Contents.json │ │ ├── videoScreenshot05.png │ │ ├── videoScreenshot05@2x.png │ │ └── videoScreenshot05@3x.png │ └── videoScreenshot06.imageset │ │ ├── Contents.json │ │ ├── videoScreenshot06.png │ │ ├── videoScreenshot06@2x.png │ │ └── videoScreenshot06@3x.png │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ ├── Pch.swift │ ├── VideoCell.swift │ ├── ViewController.swift │ └── emoji zone.mp4 ├── 第九天视频背景 ├── videobg.gif ├── 第九天视频背景.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 第九天视频背景 │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ └── login-secondary-logo.imageset │ │ ├── Contents.json │ │ ├── login-secondary-logo.png │ │ ├── login-secondary-logo@2x.png │ │ └── login-secondary-logo@3x.png │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ ├── Pch.swift │ ├── VideoBgViewController.swift │ ├── VideoCutter.swift │ ├── ViewController.swift │ └── moments.mp4 ├── 第二十一天自定义简单瀑布流 ├── 第二十一天自定义简单瀑布流.gif ├── 第二十一天自定义简单瀑布流.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 第二十一天自定义简单瀑布流 │ ├── AppDelegate.swift │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Common.swift │ ├── CustomLayout.swift │ ├── Info.plist │ └── ViewController.swift ├── 第二十二天神经元 ├── 第二十二天神经元.gif ├── 第二十二天神经元.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 第二十二天神经元 │ ├── AppDelegate.swift │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Common.swift │ ├── Info.plist │ └── ViewController.swift ├── 第二十天自定义侧滑二 ├── 第二十天自定义侧滑二.gif ├── 第二十天自定义侧滑二.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 第二十天自定义侧滑二 │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ ├── avatar.imageset │ │ ├── Contents.json │ │ └── gold@2x.png │ ├── back.imageset │ │ ├── Contents.json │ │ └── back@3x.png │ ├── qq.imageset │ │ ├── Contents.json │ │ └── qq@3x.png │ └── xingxing.imageset │ │ ├── Contents.json │ │ └── xingxing_yellow@2x.png │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── HomeViewController.swift │ ├── IMG_1794.JPG │ ├── Info.plist │ ├── LeftViewController.swift │ ├── LeftViewtableCell.swift │ ├── Pch.swift │ ├── ViewController(UI).swift │ └── ViewController.swift ├── 第二天简单表 ├── Customfont.gif ├── 表的练习.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 表的练习 │ ├── AppDelegate.swift │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── File.swift │ ├── Gaspar Regular.otf │ ├── Info.plist │ ├── MFJinHei_Noncommercial-Regular.ttf │ ├── MFTongXin_Noncommercial-Regular.ttf │ ├── MFZhiHei_Noncommercial-Regular.ttf │ └── ViewController.swift ├── 第五天定位 ├── mylocation.gif ├── 第五天 定位.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── 第五天 定位 │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ ├── Find my location.imageset │ │ │ ├── Contents.json │ │ │ ├── Find my location.png │ │ │ ├── Find my location@2x.png │ │ │ └── Find my location@3x.png │ │ └── bg.imageset │ │ │ ├── 1-Eb_0OvtcxJXHZ7-IOoBsaQ.png │ │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ ├── Pch.swift │ └── ViewController.swift └── 第五天定位.gif ├── 第八天图片缩放 ├── 第八天图片缩放.gif ├── 第八天图片缩放.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 第八天图片缩放 │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ └── steve.imageset │ │ ├── Contents.json │ │ ├── Steve.png │ │ ├── Steve@2x.png │ │ └── Steve@3x.png │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── File.swift │ ├── Info.plist │ └── ViewController.swift ├── 第六天表的刷新 ├── 第六天表的刷新.gif ├── 第六天表的刷新.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 第六天表的刷新 │ ├── AppDelegate.swift │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ ├── Pch.swift │ └── ViewController.swift ├── 第十一天老虎机 ├── 第十一天老虎机.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── 第十一天老虎机 │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ └── Hyperspace.imageset │ │ │ ├── Contents.json │ │ │ └── Hyperspace - iPhone.jpg │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ ├── Pch.swift │ └── ViewController.swift └── 第十天老虎机.gif ├── 第十七天3DTouch ├── 第十七天3DTouch.gif ├── 第十七天3DTouch.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 第十七天3DTouch │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ ├── nikeplus.imageset │ │ ├── Contents.json │ │ └── IMG_2290.PNG │ ├── run.imageset │ │ ├── Contents.json │ │ └── run.pdf │ ├── scan.imageset │ │ ├── Contents.json │ │ └── scan.pdf │ ├── setting.imageset │ │ ├── Contents.json │ │ └── IMG_2291.PNG │ ├── wechat.imageset │ │ ├── Contents.json │ │ └── IMG_2292.PNG │ └── wifi.imageset │ │ ├── Contents.json │ │ └── wifi.pdf │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── BtnDeTailViewController.swift │ ├── Info.plist │ ├── RunViewController.swift │ ├── ScanViewController.swift │ ├── ViewController.swift │ └── WifiViewController.swift ├── 第十三天转场动画 ├── 第十三天转场动画.gif ├── 第十三天转场动画.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 第十三天转场动画 │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Audio.imageset │ │ ├── Audio@2x.png │ │ └── Contents.json │ ├── Chat.imageset │ │ ├── Chat@2x.png │ │ └── Contents.json │ ├── Contents.json │ ├── LaunchImage-800.imageset │ │ ├── Contents.json │ │ └── LaunchImage-800-667h@2x.png │ ├── Link.imageset │ │ ├── Contents.json │ │ └── Link@2x.png │ ├── Photo.imageset │ │ ├── Contents.json │ │ └── Photo@2x.png │ ├── Quote.imageset │ │ ├── Contents.json │ │ └── Quote@2x.png │ ├── Text.imageset │ │ ├── Contents.json │ │ └── Text@2x.png │ ├── hugo.imageset │ │ ├── 718835727.png │ │ └── Contents.json │ ├── mengto.imageset │ │ ├── 89w7SbqD_400x400.png │ │ └── Contents.json │ ├── newPost.imageset │ │ ├── Contents.json │ │ ├── newPost.png │ │ ├── newPost@2x.png │ │ └── newPost@3x.png │ └── toolbar.imageset │ │ ├── Contents.json │ │ ├── toolbar.png │ │ ├── toolbar@2x.png │ │ └── toolbar@3x.png │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ ├── MenuTransitionManager.swift │ ├── MenuViewController.swift │ ├── Pch.swift │ └── ViewController.swift ├── 第十九天自定义侧滑一 ├── 第十九天自定义侧滑(一).xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── 第十九天自定义侧滑(一) │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── HomeViewController.swift │ ├── IMG_0155.JPG │ ├── Info.plist │ ├── Pch.swift │ ├── ViewController(UI).swift │ └── ViewController.swift └── 第十九天自定义侧滑一.gif ├── 第十二动画污点 ├── 第十二动画污点.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── 第十二动画污点 │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ ├── screen.imageset │ │ │ ├── Contents.json │ │ │ └── twitterscreen.png │ │ └── twitter.imageset │ │ │ ├── Contents.json │ │ │ └── twitter logo mask.png │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ ├── Pch.swift │ └── ViewController.swift └── 第十二天动画污点.gif ├── 第十五天 ├── 第十五天.gif ├── 第十五天.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 第十五天 │ ├── AnimationCellModel.swift │ ├── AnimationImageData.swift │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── 1.imageset │ │ ├── Contents.json │ │ └── tumblr_nk8k92X6N21sjh145o1_1280.jpg │ ├── 2.imageset │ │ ├── Contents.json │ │ └── tumblr_n9hyj3WPl21st5lhmo1_1280.jpg │ ├── 3.imageset │ │ ├── Contents.json │ │ └── tumblr_muqax2L0Ad1qkegsbo1_500.jpg │ ├── 4.imageset │ │ ├── Contents.json │ │ └── qSrhpUW.jpg │ ├── 5.imageset │ │ ├── Contents.json │ │ └── r0q8bh2.jpg │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Back-icon.imageset │ │ ├── Back-icon.pdf │ │ └── Contents.json │ └── Contents.json │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── CustomCollectionCell.swift │ ├── Info.plist │ ├── Pch.swift │ └── ViewController.swift ├── 第十八天CoreData ├── 第十八天CoreData.gif ├── 第十八天CoreData.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 第十八天CoreData │ ├── AppDelegate.swift │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── CoreDataOperation.swift │ ├── Info.plist │ ├── Model.xcdatamodeld │ └── Model.xcdatamodel │ │ └── contents │ ├── PCH.swift │ ├── ViewController.swift │ └── ____CoreData.xcdatamodeld │ ├── .xccurrentversion │ └── ____CoreData.xcdatamodel │ └── contents ├── 第十六天UITableViewRowAction ├── 第十六天UITableViewRowAction.gif ├── 第十六天UITableViewRowAction.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 第十六天UITableViewRowAction │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── 1.imageset │ │ ├── 1.jpg │ │ └── Contents.json │ ├── 2.imageset │ │ ├── Contents.json │ │ └── car.png │ ├── 3.imageset │ │ ├── Contents.json │ │ └── dribbble_build_v1_patternexercise2.jpg │ ├── 4.imageset │ │ ├── Contents.json │ │ └── icecreampattern-dribbble.jpg │ ├── 5.imageset │ │ ├── Contents.json │ │ └── pattern.jpg │ ├── 6.imageset │ │ ├── Contents.json │ │ └── patternnl-1.png │ ├── 7.imageset │ │ ├── Contents.json │ │ └── rtgdribbble-5.png │ ├── 8.imageset │ │ ├── Contents.json │ │ └── sets-rep-ebd2.png │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ └── love.imageset │ │ ├── Contents.json │ │ └── love.pdf │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── EditCell.swift │ ├── Info.plist │ ├── Pch.swift │ └── ViewController.swift ├── 第十四天字数限制 ├── 第十四天字数限制.gif ├── 第十四天字数限制.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 第十四天字数限制 │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ ├── Contents.json │ ├── emojiself avatar.imageset │ │ ├── Contents.json │ │ └── emojiself avatar.jpg │ └── toolbar.imageset │ │ ├── Contents.json │ │ ├── toolbar.png │ │ ├── toolbar@2x.png │ │ └── toolbar@3x.png │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ ├── Pch.swift │ └── ViewController.swift ├── 第十天渐变及动画table ├── 第十天渐变及动画table.gif ├── 第十天渐变及动画table.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── 第十天渐变及动画table │ ├── AppDelegate.swift │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── GradientTableViewController.swift │ ├── Info.plist │ ├── Pch.swift │ ├── TableViewCell.swift │ └── ViewController.swift └── 第四天collection ├── Carousel.gif ├── 第四天collection.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata └── 第四天collection ├── AppDelegate.swift ├── Assets.xcassets ├── AppIcon.appiconset │ └── Contents.json ├── Contents.json ├── blue.imageset │ ├── Contents.json │ └── blue.png ├── bodyline.imageset │ ├── Contents.json │ └── bodyline.png ├── darkvarder.imageset │ ├── Contents.json │ └── darkvarder.png ├── dudu.imageset │ ├── Contents.json │ └── dudu.jpg ├── hello.imageset │ ├── Contents.json │ └── hello.jpg ├── hhhhh.imageset │ ├── Contents.json │ └── hhhhh.jpg ├── run.imageset │ ├── Contents.json │ └── IMG_1517.PNG └── wave.imageset │ ├── Contents.json │ └── wave.jpg ├── Base.lproj ├── LaunchScreen.storyboard └── Main.storyboard ├── CollectionCell.swift ├── Info.plist ├── Model.swift ├── Pch.swift └── ViewController.swift /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xcuserstate 23 | 24 | ## Obj-C/Swift specific 25 | *.hmap 26 | *.ipa 27 | *.dSYM.zip 28 | *.dSYM 29 | 30 | ## Playgrounds 31 | timeline.xctimeline 32 | playground.xcworkspace 33 | 34 | # Swift Package Manager 35 | # 36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 37 | # Packages/ 38 | .build/ 39 | 40 | # CocoaPods 41 | # 42 | # We recommend against adding the Pods directory to your .gitignore. However 43 | # you should judge for yourself, the pros and cons are mentioned at: 44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 45 | # 46 | # Pods/ 47 | 48 | # Carthage 49 | # 50 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 51 | # Carthage/Checkouts 52 | 53 | Carthage/Build 54 | 55 | # fastlane 56 | # 57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 58 | # screenshots whenever they are needed. 59 | # For more information about the recommended setup visit: 60 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 61 | 62 | fastlane/report.xml 63 | fastlane/Preview.html 64 | fastlane/screenshots 65 | fastlane/test_output 66 | -------------------------------------------------------------------------------- /第一天秒表/SimpleStopWatch.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第一天秒表/SimpleStopWatch.gif -------------------------------------------------------------------------------- /第一天秒表/Swift_Text_One.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第一天秒表/Swift_Text_One/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /第一天秒表/Swift_Text_One/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /第一天秒表/Swift_Text_One/Assets.xcassets/pause.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "pause.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /第一天秒表/Swift_Text_One/Assets.xcassets/pause.imageset/pause.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第一天秒表/Swift_Text_One/Assets.xcassets/pause.imageset/pause.pdf -------------------------------------------------------------------------------- /第一天秒表/Swift_Text_One/Assets.xcassets/play.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "play.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /第一天秒表/Swift_Text_One/Assets.xcassets/play.imageset/play.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第一天秒表/Swift_Text_One/Assets.xcassets/play.imageset/play.pdf -------------------------------------------------------------------------------- /第一天秒表/Swift_Text_One/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 | 26 | 27 | -------------------------------------------------------------------------------- /第一天秒表/Swift_Text_One/File.swift: -------------------------------------------------------------------------------- 1 | // 2 | // File.swift 3 | // Swift_Text_One 4 | // 5 | // Created by 霍驹 on 17/2/13. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | let HEIGHT = UIScreen.main.bounds.size.height 13 | let WIDTH = UIScreen.main.bounds.size.width 14 | 15 | let pix = UIScreen.main.bounds.size.width/750 16 | -------------------------------------------------------------------------------- /第一天秒表/Swift_Text_One/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第七天音乐播放和渐变图层/第七天音乐播放和渐变图层.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第七天音乐播放和渐变图层/第七天音乐播放和渐变图层.gif -------------------------------------------------------------------------------- /第七天音乐播放和渐变图层/第七天音乐播放和渐变图层.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第七天音乐播放和渐变图层/第七天音乐播放和渐变图层/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /第七天音乐播放和渐变图层/第七天音乐播放和渐变图层/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /第七天音乐播放和渐变图层/第七天音乐播放和渐变图层/Assets.xcassets/music play.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "music play.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "music play@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "music play@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /第七天音乐播放和渐变图层/第七天音乐播放和渐变图层/Assets.xcassets/music play.imageset/music play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第七天音乐播放和渐变图层/第七天音乐播放和渐变图层/Assets.xcassets/music play.imageset/music play.png -------------------------------------------------------------------------------- /第七天音乐播放和渐变图层/第七天音乐播放和渐变图层/Assets.xcassets/music play.imageset/music play@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第七天音乐播放和渐变图层/第七天音乐播放和渐变图层/Assets.xcassets/music play.imageset/music play@2x.png -------------------------------------------------------------------------------- /第七天音乐播放和渐变图层/第七天音乐播放和渐变图层/Assets.xcassets/music play.imageset/music play@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第七天音乐播放和渐变图层/第七天音乐播放和渐变图层/Assets.xcassets/music play.imageset/music play@3x.png -------------------------------------------------------------------------------- /第七天音乐播放和渐变图层/第七天音乐播放和渐变图层/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 | 26 | 27 | -------------------------------------------------------------------------------- /第七天音乐播放和渐变图层/第七天音乐播放和渐变图层/Ecstasy.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第七天音乐播放和渐变图层/第七天音乐播放和渐变图层/Ecstasy.mp3 -------------------------------------------------------------------------------- /第七天音乐播放和渐变图层/第七天音乐播放和渐变图层/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第七天音乐播放和渐变图层/第七天音乐播放和渐变图层/Pch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Pch.swift 3 | // 第七天音乐播放和渐变图层 4 | // 5 | // Created by 霍驹 on 17/2/16. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | let WIGHT = UIScreen.main.bounds.size.width 13 | let HEGHT = UIScreen.main.bounds.size.height 14 | let pix = UIScreen.main.bounds.size.width/750 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /第三天自定义cell/playvideo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/playvideo.gif -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/playBtn.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "playBtn.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "playBtn@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "playBtn@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/playBtn.imageset/playBtn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/playBtn.imageset/playBtn.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/playBtn.imageset/playBtn@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/playBtn.imageset/playBtn@2x.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/playBtn.imageset/playBtn@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/playBtn.imageset/playBtn@3x.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot01.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "videoScreenshot01.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "videoScreenshot01@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "videoScreenshot01@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot01.imageset/videoScreenshot01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot01.imageset/videoScreenshot01.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot01.imageset/videoScreenshot01@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot01.imageset/videoScreenshot01@2x.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot01.imageset/videoScreenshot01@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot01.imageset/videoScreenshot01@3x.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot02.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "videoScreenshot02.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "videoScreenshot02@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "videoScreenshot02@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot02.imageset/videoScreenshot02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot02.imageset/videoScreenshot02.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot02.imageset/videoScreenshot02@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot02.imageset/videoScreenshot02@2x.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot02.imageset/videoScreenshot02@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot02.imageset/videoScreenshot02@3x.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot03.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "videoScreenshot03.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "videoScreenshot03@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "videoScreenshot03@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot03.imageset/videoScreenshot03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot03.imageset/videoScreenshot03.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot03.imageset/videoScreenshot03@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot03.imageset/videoScreenshot03@2x.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot03.imageset/videoScreenshot03@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot03.imageset/videoScreenshot03@3x.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot04.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "videoScreenshot04.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "videoScreenshot04@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "videoScreenshot04@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot04.imageset/videoScreenshot04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot04.imageset/videoScreenshot04.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot04.imageset/videoScreenshot04@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot04.imageset/videoScreenshot04@2x.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot04.imageset/videoScreenshot04@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot04.imageset/videoScreenshot04@3x.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot05.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "videoScreenshot05.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "videoScreenshot05@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "videoScreenshot05@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot05.imageset/videoScreenshot05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot05.imageset/videoScreenshot05.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot05.imageset/videoScreenshot05@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot05.imageset/videoScreenshot05@2x.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot05.imageset/videoScreenshot05@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot05.imageset/videoScreenshot05@3x.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot06.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "videoScreenshot06.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "videoScreenshot06@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "videoScreenshot06@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot06.imageset/videoScreenshot06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot06.imageset/videoScreenshot06.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot06.imageset/videoScreenshot06@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot06.imageset/videoScreenshot06@2x.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot06.imageset/videoScreenshot06@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/Assets.xcassets/videoScreenshot06.imageset/videoScreenshot06@3x.png -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/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 | 26 | 27 | -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/Pch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Pch.swift 3 | // 第三天自定义cell 4 | // 5 | // Created by 霍驹 on 17/2/14. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | let HEIGHT = UIScreen.main.bounds.size.height 13 | let WIDTH = UIScreen.main.bounds.size.width 14 | 15 | let pix = UIScreen.main.bounds.size.width/750 16 | -------------------------------------------------------------------------------- /第三天自定义cell/第三天自定义cell/emoji zone.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第三天自定义cell/第三天自定义cell/emoji zone.mp4 -------------------------------------------------------------------------------- /第九天视频背景/videobg.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第九天视频背景/videobg.gif -------------------------------------------------------------------------------- /第九天视频背景/第九天视频背景.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第九天视频背景/第九天视频背景/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /第九天视频背景/第九天视频背景/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /第九天视频背景/第九天视频背景/Assets.xcassets/login-secondary-logo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "login-secondary-logo.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "login-secondary-logo@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "login-secondary-logo@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /第九天视频背景/第九天视频背景/Assets.xcassets/login-secondary-logo.imageset/login-secondary-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第九天视频背景/第九天视频背景/Assets.xcassets/login-secondary-logo.imageset/login-secondary-logo.png -------------------------------------------------------------------------------- /第九天视频背景/第九天视频背景/Assets.xcassets/login-secondary-logo.imageset/login-secondary-logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第九天视频背景/第九天视频背景/Assets.xcassets/login-secondary-logo.imageset/login-secondary-logo@2x.png -------------------------------------------------------------------------------- /第九天视频背景/第九天视频背景/Assets.xcassets/login-secondary-logo.imageset/login-secondary-logo@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第九天视频背景/第九天视频背景/Assets.xcassets/login-secondary-logo.imageset/login-secondary-logo@3x.png -------------------------------------------------------------------------------- /第九天视频背景/第九天视频背景/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 | 26 | 27 | -------------------------------------------------------------------------------- /第九天视频背景/第九天视频背景/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第九天视频背景/第九天视频背景/Pch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Pch.swift 3 | // 第九天视频背景 4 | // 5 | // Created by 霍驹 on 17/2/21. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | let WIDTH = UIScreen.main.bounds.size.width 13 | let HEIGHT = UIScreen.main.bounds.size.height 14 | let pix = UIScreen.main.bounds.size.width/750 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /第九天视频背景/第九天视频背景/moments.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第九天视频背景/第九天视频背景/moments.mp4 -------------------------------------------------------------------------------- /第二十一天自定义简单瀑布流/第二十一天自定义简单瀑布流.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第二十一天自定义简单瀑布流/第二十一天自定义简单瀑布流.gif -------------------------------------------------------------------------------- /第二十一天自定义简单瀑布流/第二十一天自定义简单瀑布流.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第二十一天自定义简单瀑布流/第二十一天自定义简单瀑布流/Assets.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 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /第二十一天自定义简单瀑布流/第二十一天自定义简单瀑布流/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 | 26 | 27 | -------------------------------------------------------------------------------- /第二十一天自定义简单瀑布流/第二十一天自定义简单瀑布流/Common.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Common.swift 3 | // 第二十一天自定义简单瀑布流 4 | // 5 | // Created by 霍驹 on 17/3/21. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | let WIDTH = UIScreen.main.bounds.size.width 12 | let HEIGHT = UIScreen.main.bounds.size.height 13 | let pix = UIScreen.main.bounds.size.width/750 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /第二十一天自定义简单瀑布流/第二十一天自定义简单瀑布流/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第二十二天神经元/第二十二天神经元.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第二十二天神经元/第二十二天神经元.gif -------------------------------------------------------------------------------- /第二十二天神经元/第二十二天神经元.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第二十二天神经元/第二十二天神经元/Assets.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 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /第二十二天神经元/第二十二天神经元/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 | 26 | 27 | -------------------------------------------------------------------------------- /第二十二天神经元/第二十二天神经元/Common.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Common.swift 3 | // 第二十二天神经元 4 | // 5 | // Created by 霍驹 on 17/3/22. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | let WIDTH = UIScreen.main.bounds.width 12 | let HEIGHT = UIScreen.main.bounds.height 13 | let pix = UIScreen.main.bounds.width/750 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /第二十二天神经元/第二十二天神经元/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第二十天自定义侧滑二/第二十天自定义侧滑二.gif -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二/Assets.xcassets/avatar.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "gold@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二/Assets.xcassets/avatar.imageset/gold@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第二十天自定义侧滑二/第二十天自定义侧滑二/Assets.xcassets/avatar.imageset/gold@2x.png -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二/Assets.xcassets/back.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "idiom" : "universal", 13 | "filename" : "back@3x.png", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二/Assets.xcassets/back.imageset/back@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第二十天自定义侧滑二/第二十天自定义侧滑二/Assets.xcassets/back.imageset/back@3x.png -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二/Assets.xcassets/qq.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "idiom" : "universal", 13 | "filename" : "qq@3x.png", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二/Assets.xcassets/qq.imageset/qq@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第二十天自定义侧滑二/第二十天自定义侧滑二/Assets.xcassets/qq.imageset/qq@3x.png -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二/Assets.xcassets/xingxing.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "xingxing_yellow@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二/Assets.xcassets/xingxing.imageset/xingxing_yellow@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第二十天自定义侧滑二/第二十天自定义侧滑二/Assets.xcassets/xingxing.imageset/xingxing_yellow@2x.png -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二/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 | 26 | 27 | -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二/HomeViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HomeViewController.swift 3 | // 第二十天自定义侧滑二 4 | // 5 | // Created by 霍驹 on 17/3/11. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class HomeViewController: UIViewController { 12 | 13 | var gestureRecognize : UIPanGestureRecognizer! 14 | 15 | var textLabel = UILabel() 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | 20 | self.view.backgroundColor = UIColor.white 21 | 22 | gestureRecognize = UIPanGestureRecognizer.init() 23 | self.view.addGestureRecognizer(gestureRecognize!) 24 | 25 | textLabel.frame = CGRect.init(x: 0, y: 0, width: 500*pix, height: 300*pix) 26 | textLabel.center = CGPoint.init(x: self.view.center.x, y: self.view.center.y) 27 | textLabel.textAlignment = .center 28 | textLabel.textColor = UIColor.orange 29 | textLabel.text = "Home VC" 30 | textLabel.font = UIFont.init(name: "PingFangSC-Light", size: 100*pix) 31 | self.view.addSubview(textLabel) 32 | 33 | // Do any additional setup after loading the view. 34 | } 35 | 36 | override func didReceiveMemoryWarning() { 37 | super.didReceiveMemoryWarning() 38 | // Dispose of any resources that can be recreated. 39 | } 40 | 41 | 42 | 43 | 44 | } 45 | -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二/IMG_1794.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第二十天自定义侧滑二/第二十天自定义侧滑二/IMG_1794.JPG -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第二十天自定义侧滑二/第二十天自定义侧滑二/Pch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Pch.swift 3 | // 第二十天自定义侧滑二 4 | // 5 | // Created by 霍驹 on 17/3/11. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | let WIDTH = UIScreen.main.bounds.width 13 | let HEIGHT = UIScreen.main.bounds.height 14 | 15 | let pix = UIScreen.main.bounds.width/750 16 | 17 | func color (R : CGFloat , G : CGFloat , B : CGFloat) -> UIColor { 18 | 19 | return UIColor.init(red: R/255.0, green: G/255.0, blue: B/255.0, alpha: 1) 20 | 21 | } 22 | 23 | -------------------------------------------------------------------------------- /第二天简单表/Customfont.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第二天简单表/Customfont.gif -------------------------------------------------------------------------------- /第二天简单表/表的练习.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第二天简单表/表的练习/Assets.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 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /第二天简单表/表的练习/Base.lproj/LaunchScreen.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 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /第二天简单表/表的练习/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 | 26 | 27 | -------------------------------------------------------------------------------- /第二天简单表/表的练习/File.swift: -------------------------------------------------------------------------------- 1 | // 2 | // File.swift 3 | // 表的练习 4 | // 5 | // Created by 霍驹 on 17/2/14. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | let HEIGHT = UIScreen.main.bounds.size.height 13 | let WIDTH = UIScreen.main.bounds.size.width 14 | 15 | let pix = UIScreen.main.bounds.size.width/750 16 | -------------------------------------------------------------------------------- /第二天简单表/表的练习/Gaspar Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第二天简单表/表的练习/Gaspar Regular.otf -------------------------------------------------------------------------------- /第二天简单表/表的练习/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第二天简单表/表的练习/MFJinHei_Noncommercial-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第二天简单表/表的练习/MFJinHei_Noncommercial-Regular.ttf -------------------------------------------------------------------------------- /第二天简单表/表的练习/MFTongXin_Noncommercial-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第二天简单表/表的练习/MFTongXin_Noncommercial-Regular.ttf -------------------------------------------------------------------------------- /第二天简单表/表的练习/MFZhiHei_Noncommercial-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第二天简单表/表的练习/MFZhiHei_Noncommercial-Regular.ttf -------------------------------------------------------------------------------- /第五天定位/mylocation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第五天定位/mylocation.gif -------------------------------------------------------------------------------- /第五天定位/第五天 定位.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第五天定位/第五天 定位/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /第五天定位/第五天 定位/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /第五天定位/第五天 定位/Assets.xcassets/Find my location.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Find my location.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Find my location@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Find my location@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /第五天定位/第五天 定位/Assets.xcassets/Find my location.imageset/Find my location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第五天定位/第五天 定位/Assets.xcassets/Find my location.imageset/Find my location.png -------------------------------------------------------------------------------- /第五天定位/第五天 定位/Assets.xcassets/Find my location.imageset/Find my location@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第五天定位/第五天 定位/Assets.xcassets/Find my location.imageset/Find my location@2x.png -------------------------------------------------------------------------------- /第五天定位/第五天 定位/Assets.xcassets/Find my location.imageset/Find my location@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第五天定位/第五天 定位/Assets.xcassets/Find my location.imageset/Find my location@3x.png -------------------------------------------------------------------------------- /第五天定位/第五天 定位/Assets.xcassets/bg.imageset/1-Eb_0OvtcxJXHZ7-IOoBsaQ.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第五天定位/第五天 定位/Assets.xcassets/bg.imageset/1-Eb_0OvtcxJXHZ7-IOoBsaQ.png -------------------------------------------------------------------------------- /第五天定位/第五天 定位/Assets.xcassets/bg.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "1-Eb_0OvtcxJXHZ7-IOoBsaQ.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第五天定位/第五天 定位/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 | 26 | 27 | -------------------------------------------------------------------------------- /第五天定位/第五天 定位/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | NSLocationAlwaysUsageDescription 24 | Where are you 25 | NSLocationWhenInUseUsageDescription 26 | 不允许我就白弄了 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /第五天定位/第五天 定位/Pch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Pch.swift 3 | // 第五天 定位 4 | // 5 | // Created by 霍驹 on 17/2/15. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | let WIDTH = UIScreen.main.bounds.size.width 13 | let HEIGHT = UIScreen.main.bounds.size.height 14 | let pix = UIScreen.main.bounds.size.width/750 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /第五天定位/第五天定位.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第五天定位/第五天定位.gif -------------------------------------------------------------------------------- /第八天图片缩放/第八天图片缩放.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第八天图片缩放/第八天图片缩放.gif -------------------------------------------------------------------------------- /第八天图片缩放/第八天图片缩放.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第八天图片缩放/第八天图片缩放/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /第八天图片缩放/第八天图片缩放/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /第八天图片缩放/第八天图片缩放/Assets.xcassets/steve.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Steve.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Steve@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Steve@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /第八天图片缩放/第八天图片缩放/Assets.xcassets/steve.imageset/Steve.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第八天图片缩放/第八天图片缩放/Assets.xcassets/steve.imageset/Steve.png -------------------------------------------------------------------------------- /第八天图片缩放/第八天图片缩放/Assets.xcassets/steve.imageset/Steve@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第八天图片缩放/第八天图片缩放/Assets.xcassets/steve.imageset/Steve@2x.png -------------------------------------------------------------------------------- /第八天图片缩放/第八天图片缩放/Assets.xcassets/steve.imageset/Steve@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第八天图片缩放/第八天图片缩放/Assets.xcassets/steve.imageset/Steve@3x.png -------------------------------------------------------------------------------- /第八天图片缩放/第八天图片缩放/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 | 26 | 27 | -------------------------------------------------------------------------------- /第八天图片缩放/第八天图片缩放/File.swift: -------------------------------------------------------------------------------- 1 | // 2 | // File.swift 3 | // 第八天图片缩放 4 | // 5 | // Created by 霍驹 on 17/2/17. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | let WIDTH = UIScreen.main.bounds.size.width 13 | let HEIGHT = UIScreen.main.bounds.size.height 14 | let pix = UIScreen.main.bounds.size.width/750 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /第八天图片缩放/第八天图片缩放/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第六天表的刷新/第六天表的刷新.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第六天表的刷新/第六天表的刷新.gif -------------------------------------------------------------------------------- /第六天表的刷新/第六天表的刷新.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第六天表的刷新/第六天表的刷新/Assets.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 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /第六天表的刷新/第六天表的刷新/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 | 26 | 27 | -------------------------------------------------------------------------------- /第六天表的刷新/第六天表的刷新/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第六天表的刷新/第六天表的刷新/Pch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Pch.swift 3 | // 第六天表的刷新 4 | // 5 | // Created by 霍驹 on 17/2/16. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | let WIDTH = UIScreen.main.bounds.size.width 12 | let HEIGHT = UIScreen.main.bounds.size.height 13 | let pix = UIScreen.main.bounds.size.width/750 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /第十一天老虎机/第十一天老虎机.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第十一天老虎机/第十一天老虎机/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /第十一天老虎机/第十一天老虎机/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /第十一天老虎机/第十一天老虎机/Assets.xcassets/Hyperspace.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Hyperspace - iPhone.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十一天老虎机/第十一天老虎机/Assets.xcassets/Hyperspace.imageset/Hyperspace - iPhone.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十一天老虎机/第十一天老虎机/Assets.xcassets/Hyperspace.imageset/Hyperspace - iPhone.jpg -------------------------------------------------------------------------------- /第十一天老虎机/第十一天老虎机/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 | 26 | 27 | -------------------------------------------------------------------------------- /第十一天老虎机/第十一天老虎机/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第十一天老虎机/第十一天老虎机/Pch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Pch.swift 3 | // 第十一天老虎机 4 | // 5 | // Created by 霍驹 on 17/2/23. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | let WIDTH = UIScreen.main.bounds.size.width 12 | let HEIGHT = UIScreen.main.bounds.size.height 13 | let pix = UIScreen.main.bounds.size.width/750 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /第十一天老虎机/第十天老虎机.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十一天老虎机/第十天老虎机.gif -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十七天3DTouch/第十七天3DTouch.gif -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/Assets.xcassets/nikeplus.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "IMG_2290.PNG", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/Assets.xcassets/nikeplus.imageset/IMG_2290.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十七天3DTouch/第十七天3DTouch/Assets.xcassets/nikeplus.imageset/IMG_2290.PNG -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/Assets.xcassets/run.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "run.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/Assets.xcassets/run.imageset/run.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十七天3DTouch/第十七天3DTouch/Assets.xcassets/run.imageset/run.pdf -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/Assets.xcassets/scan.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "scan.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/Assets.xcassets/scan.imageset/scan.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十七天3DTouch/第十七天3DTouch/Assets.xcassets/scan.imageset/scan.pdf -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/Assets.xcassets/setting.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "IMG_2291.PNG", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/Assets.xcassets/setting.imageset/IMG_2291.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十七天3DTouch/第十七天3DTouch/Assets.xcassets/setting.imageset/IMG_2291.PNG -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/Assets.xcassets/wechat.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "IMG_2292.PNG", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/Assets.xcassets/wechat.imageset/IMG_2292.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十七天3DTouch/第十七天3DTouch/Assets.xcassets/wechat.imageset/IMG_2292.PNG -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/Assets.xcassets/wifi.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "wifi.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/Assets.xcassets/wifi.imageset/wifi.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十七天3DTouch/第十七天3DTouch/Assets.xcassets/wifi.imageset/wifi.pdf -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/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 | 26 | 27 | -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/RunViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RunViewController.swift 3 | // 第十七天3DTouch 4 | // 5 | // Created by 霍驹 on 17/3/3. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class RunViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | self.view.backgroundColor = UIColor.white 16 | 17 | let titleLabel = UILabel.init(frame: CGRect.init(x: 0, y: 0, width: 300, height: 100)) 18 | titleLabel.center = CGPoint.init(x: self.view.center.x, y: self.view.center.y) 19 | titleLabel.text = "Run VC" 20 | titleLabel.textAlignment = .center 21 | titleLabel.font = UIFont.init(name: "Avenir-Medium", size: 30) 22 | self.view.addSubview(titleLabel) 23 | 24 | let imageView = UIImageView.init(frame: self.view.bounds) 25 | imageView.image = #imageLiteral(resourceName: "nikeplus") 26 | self.view.addSubview(imageView) 27 | // Do any additional setup after loading the view. 28 | } 29 | 30 | override func didReceiveMemoryWarning() { 31 | super.didReceiveMemoryWarning() 32 | // Dispose of any resources that can be recreated. 33 | } 34 | 35 | 36 | /* 37 | // MARK: - Navigation 38 | 39 | // In a storyboard-based application, you will often want to do a little preparation before navigation 40 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 41 | // Get the new view controller using segue.destinationViewController. 42 | // Pass the selected object to the new view controller. 43 | } 44 | */ 45 | 46 | } 47 | -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/ScanViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ScanViewController.swift 3 | // 第十七天3DTouch 4 | // 5 | // Created by 霍驹 on 17/3/3. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ScanViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | self.view.backgroundColor = UIColor.white 16 | let titleLabel = UILabel.init(frame: CGRect.init(x: 0, y: 0, width: 300, height: 100)) 17 | titleLabel.center = CGPoint.init(x: self.view.center.x, y: self.view.center.y) 18 | titleLabel.text = "Run VC" 19 | titleLabel.textAlignment = .center 20 | titleLabel.font = UIFont.init(name: "Avenir-Medium", size: 30) 21 | self.view.addSubview(titleLabel) 22 | 23 | 24 | let imageView = UIImageView.init(frame: self.view.bounds) 25 | imageView.image = #imageLiteral(resourceName: "wechat") 26 | self.view.addSubview(imageView) 27 | // Do any additional setup after loading the view. 28 | } 29 | 30 | override func didReceiveMemoryWarning() { 31 | super.didReceiveMemoryWarning() 32 | // Dispose of any resources that can be recreated. 33 | } 34 | 35 | 36 | /* 37 | // MARK: - Navigation 38 | 39 | // In a storyboard-based application, you will often want to do a little preparation before navigation 40 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 41 | // Get the new view controller using segue.destinationViewController. 42 | // Pass the selected object to the new view controller. 43 | } 44 | */ 45 | 46 | } 47 | -------------------------------------------------------------------------------- /第十七天3DTouch/第十七天3DTouch/WifiViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // WifiViewController.swift 3 | // 第十七天3DTouch 4 | // 5 | // Created by 霍驹 on 17/3/3. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class WifiViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | self.view.backgroundColor = UIColor.white 16 | let titleLabel = UILabel.init(frame: CGRect.init(x: 0, y: 0, width: 300, height: 100)) 17 | titleLabel.center = CGPoint.init(x: self.view.center.x, y: self.view.center.y) 18 | titleLabel.text = "Run VC" 19 | titleLabel.textAlignment = .center 20 | titleLabel.font = UIFont.init(name: "Avenir-Medium", size: 30) 21 | self.view.addSubview(titleLabel) 22 | 23 | let imageView = UIImageView.init(frame: self.view.bounds) 24 | imageView.image = #imageLiteral(resourceName: "setting") 25 | self.view.addSubview(imageView) 26 | 27 | // Do any additional setup after loading the view. 28 | } 29 | 30 | override func didReceiveMemoryWarning() { 31 | super.didReceiveMemoryWarning() 32 | // Dispose of any resources that can be recreated. 33 | } 34 | 35 | 36 | /* 37 | // MARK: - Navigation 38 | 39 | // In a storyboard-based application, you will often want to do a little preparation before navigation 40 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 41 | // Get the new view controller using segue.destinationViewController. 42 | // Pass the selected object to the new view controller. 43 | } 44 | */ 45 | 46 | } 47 | -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画.gif -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/Audio.imageset/Audio@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画/Assets.xcassets/Audio.imageset/Audio@2x.png -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/Audio.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Audio@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/Chat.imageset/Chat@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画/Assets.xcassets/Chat.imageset/Chat@2x.png -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/Chat.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Chat@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/LaunchImage-800.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "iphone", 9 | "filename" : "LaunchImage-800-667h@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "iphone", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/LaunchImage-800.imageset/LaunchImage-800-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画/Assets.xcassets/LaunchImage-800.imageset/LaunchImage-800-667h@2x.png -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/Link.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Link@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/Link.imageset/Link@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画/Assets.xcassets/Link.imageset/Link@2x.png -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/Photo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Photo@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/Photo.imageset/Photo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画/Assets.xcassets/Photo.imageset/Photo@2x.png -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/Quote.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Quote@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/Quote.imageset/Quote@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画/Assets.xcassets/Quote.imageset/Quote@2x.png -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/Text.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Text@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/Text.imageset/Text@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画/Assets.xcassets/Text.imageset/Text@2x.png -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/hugo.imageset/718835727.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画/Assets.xcassets/hugo.imageset/718835727.png -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/hugo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "718835727.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/mengto.imageset/89w7SbqD_400x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画/Assets.xcassets/mengto.imageset/89w7SbqD_400x400.png -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/mengto.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "89w7SbqD_400x400.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/newPost.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "newPost.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "newPost@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "newPost@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/newPost.imageset/newPost.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画/Assets.xcassets/newPost.imageset/newPost.png -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/newPost.imageset/newPost@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画/Assets.xcassets/newPost.imageset/newPost@2x.png -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/newPost.imageset/newPost@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画/Assets.xcassets/newPost.imageset/newPost@3x.png -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/toolbar.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "toolbar.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "toolbar@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "toolbar@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/toolbar.imageset/toolbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画/Assets.xcassets/toolbar.imageset/toolbar.png -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/toolbar.imageset/toolbar@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画/Assets.xcassets/toolbar.imageset/toolbar@2x.png -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Assets.xcassets/toolbar.imageset/toolbar@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十三天转场动画/第十三天转场动画/Assets.xcassets/toolbar.imageset/toolbar@3x.png -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/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 | 26 | 27 | -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/Pch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Pch.swift 3 | // 第十三天转场动画 4 | // 5 | // Created by 霍驹 on 17/2/27. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | let WIDTH = UIScreen.main.bounds.size.width 12 | let HEIGHT = UIScreen.main.bounds.size.height 13 | let pix = UIScreen.main.bounds.size.width/750 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /第十三天转场动画/第十三天转场动画/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // 第十三天转场动画 4 | // 5 | // Created by 霍驹 on 17/2/27. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController , UIViewControllerTransitioningDelegate { 12 | 13 | let menuManager = MenuTransitionManager() 14 | 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | UIApplication.shared.isStatusBarHidden = true 19 | self.navigationController?.navigationBar.isHidden = true 20 | setUpUI() 21 | } 22 | func setUpUI(){ 23 | let bgImageView = UIImageView.init(frame: self.view.frame) 24 | bgImageView.image = UIImage.init(named: "LaunchImage-800") 25 | view.addSubview(bgImageView) 26 | 27 | let tarImageView = UIImageView.init(frame: CGRect.init(x: 0, y: HEIGHT-100*pix, width: WIDTH, height: 100*pix)) 28 | tarImageView.image = UIImage.init(named: "toolbar") 29 | tarImageView.isUserInteractionEnabled = true 30 | view.addSubview(tarImageView) 31 | 32 | let animationBtn = UIButton.init(frame: CGRect.init(x: 325*pix, y: 15*pix, width: 90*pix, height: 70*pix)) 33 | animationBtn.setBackgroundImage(#imageLiteral(resourceName: "newPost"), for: .normal) 34 | animationBtn.addTarget(self, action: #selector(self.animationBtnTouch), for: .touchUpInside) 35 | tarImageView.addSubview(animationBtn) 36 | 37 | 38 | } 39 | 40 | func animationBtnTouch(){ 41 | let menuVC = MenuViewController() 42 | self.present(menuVC, animated: true, completion: nil) 43 | 44 | 45 | } 46 | 47 | 48 | 49 | 50 | } 51 | 52 | -------------------------------------------------------------------------------- /第十九天自定义侧滑一/第十九天自定义侧滑(一).xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第十九天自定义侧滑一/第十九天自定义侧滑(一)/Assets.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 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /第十九天自定义侧滑一/第十九天自定义侧滑(一)/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 | 26 | 27 | -------------------------------------------------------------------------------- /第十九天自定义侧滑一/第十九天自定义侧滑(一)/HomeViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HomeViewController.swift 3 | // 第十九天自定义侧滑(一) 4 | // 5 | // Created by 霍驹 on 17/3/10. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class HomeViewController: UIViewController { 12 | 13 | var gestureRecognize : UIPanGestureRecognizer! 14 | 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | 19 | self.view.backgroundColor = UIColor.orange 20 | 21 | gestureRecognize = UIPanGestureRecognizer.init() 22 | self.view.addGestureRecognizer(gestureRecognize!) 23 | 24 | let textLabel = UILabel.init(frame: CGRect.init(x: 0, y: 0, width: 500*pix, height: 300*pix)) 25 | textLabel.center = CGPoint.init(x: self.view.center.x, y: self.view.center.y) 26 | textLabel.textAlignment = .center 27 | textLabel.textColor = UIColor.white 28 | textLabel.text = "Home VC" 29 | textLabel.font = UIFont.init(name: "PingFangSC-Light", size: 100*pix) 30 | self.view.addSubview(textLabel) 31 | 32 | // Do any additional setup after loading the view. 33 | } 34 | 35 | override func didReceiveMemoryWarning() { 36 | super.didReceiveMemoryWarning() 37 | // Dispose of any resources that can be recreated. 38 | } 39 | 40 | 41 | /* 42 | // MARK: - Navigation 43 | 44 | // In a storyboard-based application, you will often want to do a little preparation before navigation 45 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) { 46 | // Get the new view controller using segue.destinationViewController. 47 | // Pass the selected object to the new view controller. 48 | } 49 | */ 50 | 51 | } 52 | -------------------------------------------------------------------------------- /第十九天自定义侧滑一/第十九天自定义侧滑(一)/IMG_0155.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十九天自定义侧滑一/第十九天自定义侧滑(一)/IMG_0155.JPG -------------------------------------------------------------------------------- /第十九天自定义侧滑一/第十九天自定义侧滑(一)/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /第十九天自定义侧滑一/第十九天自定义侧滑(一)/Pch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Pch.swift 3 | // 第十九天自定义侧滑(一) 4 | // 5 | // Created by 霍驹 on 17/3/10. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | let WIDTH = UIScreen.main.bounds.size.width 12 | let HEIGHT = UIScreen.main.bounds.size.height 13 | 14 | let pix = UIScreen.main.bounds.size.width/750 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /第十九天自定义侧滑一/第十九天自定义侧滑(一)/ViewController(UI).swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController(UI).swift 3 | // 第十九天自定义侧滑(一) 4 | // 5 | // Created by 霍驹 on 17/3/10. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | extension ViewController { 12 | 13 | func setUpUI(){ 14 | //给主视图设置背景 15 | let bgImageView = UIImageView.init(frame: self.view.frame) 16 | bgImageView.image = #imageLiteral(resourceName: "IMG_0155.JPG") 17 | bgImageView.isUserInteractionEnabled = true 18 | self.view.addSubview(bgImageView) 19 | 20 | //添加HomeVc 21 | homeViewController = HomeViewController() 22 | self.view.addSubview((homeViewController?.view)!) 23 | 24 | 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /第十九天自定义侧滑一/第十九天自定义侧滑一.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十九天自定义侧滑一/第十九天自定义侧滑一.gif -------------------------------------------------------------------------------- /第十二动画污点/第十二动画污点.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第十二动画污点/第十二动画污点/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /第十二动画污点/第十二动画污点/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /第十二动画污点/第十二动画污点/Assets.xcassets/screen.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "twitterscreen.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十二动画污点/第十二动画污点/Assets.xcassets/screen.imageset/twitterscreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十二动画污点/第十二动画污点/Assets.xcassets/screen.imageset/twitterscreen.png -------------------------------------------------------------------------------- /第十二动画污点/第十二动画污点/Assets.xcassets/twitter.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "twitter logo mask.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十二动画污点/第十二动画污点/Assets.xcassets/twitter.imageset/twitter logo mask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十二动画污点/第十二动画污点/Assets.xcassets/twitter.imageset/twitter logo mask.png -------------------------------------------------------------------------------- /第十二动画污点/第十二动画污点/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 | 26 | 27 | -------------------------------------------------------------------------------- /第十二动画污点/第十二动画污点/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UIViewControllerBasedStatusBarAppearance 6 | 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 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 | 40 | 41 | -------------------------------------------------------------------------------- /第十二动画污点/第十二动画污点/Pch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Pch.swift 3 | // 第十二动画污点 4 | // 5 | // Created by 霍驹 on 17/2/24. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | let WIDTH = UIScreen.main.bounds.size.width 13 | let HEIGHT = UIScreen.main.bounds.size.height 14 | let pix = UIScreen.main.bounds.size.width/750 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /第十二动画污点/第十二天动画污点.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十二动画污点/第十二天动画污点.gif -------------------------------------------------------------------------------- /第十五天/第十五天.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十五天/第十五天.gif -------------------------------------------------------------------------------- /第十五天/第十五天.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第十五天/第十五天/AnimationCellModel.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AnimationCellModel.swift 3 | // 第十五天 4 | // 5 | // Created by 霍驹 on 17/3/2. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | struct AnimationCellModel { 12 | let imageName : String 13 | 14 | init(imageName : String?) { 15 | self.imageName = imageName ?? "1" 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /第十五天/第十五天/AnimationImageData.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AnimationImageData.swift 3 | // 第十五天 4 | // 5 | // Created by 霍驹 on 17/3/2. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | struct AnimationImageData { 12 | fileprivate let imageName = ["1", "2", "3", "4", "5"] 13 | var images = [AnimationCellModel]() 14 | init() { 15 | images = imageName.map({ 16 | AnimationCellModel.init(imageName: $0)}) 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /第十五天/第十五天/Assets.xcassets/1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "tumblr_nk8k92X6N21sjh145o1_1280.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十五天/第十五天/Assets.xcassets/1.imageset/tumblr_nk8k92X6N21sjh145o1_1280.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十五天/第十五天/Assets.xcassets/1.imageset/tumblr_nk8k92X6N21sjh145o1_1280.jpg -------------------------------------------------------------------------------- /第十五天/第十五天/Assets.xcassets/2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "tumblr_n9hyj3WPl21st5lhmo1_1280.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十五天/第十五天/Assets.xcassets/2.imageset/tumblr_n9hyj3WPl21st5lhmo1_1280.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十五天/第十五天/Assets.xcassets/2.imageset/tumblr_n9hyj3WPl21st5lhmo1_1280.jpg -------------------------------------------------------------------------------- /第十五天/第十五天/Assets.xcassets/3.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "tumblr_muqax2L0Ad1qkegsbo1_500.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十五天/第十五天/Assets.xcassets/3.imageset/tumblr_muqax2L0Ad1qkegsbo1_500.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十五天/第十五天/Assets.xcassets/3.imageset/tumblr_muqax2L0Ad1qkegsbo1_500.jpg -------------------------------------------------------------------------------- /第十五天/第十五天/Assets.xcassets/4.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "qSrhpUW.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十五天/第十五天/Assets.xcassets/4.imageset/qSrhpUW.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十五天/第十五天/Assets.xcassets/4.imageset/qSrhpUW.jpg -------------------------------------------------------------------------------- /第十五天/第十五天/Assets.xcassets/5.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "r0q8bh2.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十五天/第十五天/Assets.xcassets/5.imageset/r0q8bh2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十五天/第十五天/Assets.xcassets/5.imageset/r0q8bh2.jpg -------------------------------------------------------------------------------- /第十五天/第十五天/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /第十五天/第十五天/Assets.xcassets/Back-icon.imageset/Back-icon.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十五天/第十五天/Assets.xcassets/Back-icon.imageset/Back-icon.pdf -------------------------------------------------------------------------------- /第十五天/第十五天/Assets.xcassets/Back-icon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Back-icon.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /第十五天/第十五天/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /第十五天/第十五天/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 | 26 | 27 | -------------------------------------------------------------------------------- /第十五天/第十五天/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第十五天/第十五天/Pch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Pch.swift 3 | // 第十五天 4 | // 5 | // Created by 霍驹 on 17/3/1. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | let WIDTH = UIScreen.main.bounds.size.width 12 | let HEIGHT = UIScreen.main.bounds.size.height 13 | 14 | let pix = UIScreen.main.bounds.size.width/750 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /第十八天CoreData/第十八天CoreData.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十八天CoreData/第十八天CoreData.gif -------------------------------------------------------------------------------- /第十八天CoreData/第十八天CoreData.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第十八天CoreData/第十八天CoreData/Assets.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 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /第十八天CoreData/第十八天CoreData/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 | 26 | 27 | -------------------------------------------------------------------------------- /第十八天CoreData/第十八天CoreData/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第十八天CoreData/第十八天CoreData/Model.xcdatamodeld/Model.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /第十八天CoreData/第十八天CoreData/PCH.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PCH.swift 3 | // 第十八天CoreData 4 | // 5 | // Created by 霍驹 on 17/3/7. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | let WIDTH = UIScreen.main.bounds.size.width 12 | let HEIGHT = UIScreen.main.bounds.size.height 13 | 14 | let pix = UIScreen.main.bounds.size.width/750 15 | 16 | 17 | -------------------------------------------------------------------------------- /第十八天CoreData/第十八天CoreData/____CoreData.xcdatamodeld/.xccurrentversion: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | _XCCurrentVersionName 6 | ____CoreData.xcdatamodel 7 | 8 | 9 | -------------------------------------------------------------------------------- /第十八天CoreData/第十八天CoreData/____CoreData.xcdatamodeld/____CoreData.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十六天UITableViewRowAction/第十六天UITableViewRowAction.gif -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/1.imageset/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/1.imageset/1.jpg -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "1.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "car.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/2.imageset/car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/2.imageset/car.png -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/3.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "dribbble_build_v1_patternexercise2.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/3.imageset/dribbble_build_v1_patternexercise2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/3.imageset/dribbble_build_v1_patternexercise2.jpg -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/4.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "icecreampattern-dribbble.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/4.imageset/icecreampattern-dribbble.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/4.imageset/icecreampattern-dribbble.jpg -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/5.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "pattern.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/5.imageset/pattern.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/5.imageset/pattern.jpg -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/6.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "patternnl-1.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/6.imageset/patternnl-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/6.imageset/patternnl-1.png -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/7.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "rtgdribbble-5.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/7.imageset/rtgdribbble-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/7.imageset/rtgdribbble-5.png -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/8.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "sets-rep-ebd2.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/8.imageset/sets-rep-ebd2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/8.imageset/sets-rep-ebd2.png -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/love.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "love.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/love.imageset/love.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十六天UITableViewRowAction/第十六天UITableViewRowAction/Assets.xcassets/love.imageset/love.pdf -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/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 | 26 | 27 | -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/EditCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // EditCell.swift 3 | // 第十六天UITableViewRowAction 4 | // 5 | // Created by 霍驹 on 17/3/3. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class EditCell: UITableViewCell { 12 | 13 | var leftImage = UIImageView() 14 | var rightLabel = UILabel() 15 | let cellHeight = 100*pix 16 | 17 | override func awakeFromNib() { 18 | super.awakeFromNib() 19 | // Initialization code 20 | } 21 | 22 | override func setSelected(_ selected: Bool, animated: Bool) { 23 | super.setSelected(selected, animated: animated) 24 | 25 | // Configure the view for the selected state 26 | } 27 | 28 | required init?(coder aDecoder: NSCoder) { 29 | super.init(coder: aDecoder) 30 | } 31 | 32 | override init(style: UITableViewCellStyle, reuseIdentifier: String?) { 33 | super.init(style: style, reuseIdentifier: reuseIdentifier) 34 | setUpUI() 35 | } 36 | 37 | 38 | // override func layoutSubviews() { 39 | // 40 | // leftImage.frame = CGRect.init(x: 0*pix, y: 0, width: 300*pix, height: cellHeight) 41 | // rightLabel.frame = CGRect.init(x: 320*pix, y: (cellHeight-40*pix)/2, width: 400*pix, height: 40*pix) 42 | // } 43 | 44 | func setUpUI(){ 45 | 46 | leftImage.frame = CGRect.init(x: 0*pix, y: 0, width: 300*pix, height: cellHeight) 47 | self.contentView.addSubview(leftImage) 48 | 49 | rightLabel.frame = CGRect.init(x: 320*pix, y: (cellHeight-30*pix)/2, width: 400*pix, height: 40*pix) 50 | rightLabel.textAlignment = .left 51 | rightLabel.font = UIFont.systemFont(ofSize: 30*pix) 52 | self.contentView.addSubview(rightLabel) 53 | 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第十六天UITableViewRowAction/第十六天UITableViewRowAction/Pch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Pch.swift 3 | // 第十六天UITableViewRowAction 4 | // 5 | // Created by 霍驹 on 17/3/3. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | let WIDTH = UIScreen.main.bounds.size.width 12 | let HEIGHT = UIScreen.main.bounds.size.height 13 | let pix = UIScreen.main.bounds.size.width/750 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /第十四天字数限制/第十四天字数限制.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十四天字数限制/第十四天字数限制.gif -------------------------------------------------------------------------------- /第十四天字数限制/第十四天字数限制.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第十四天字数限制/第十四天字数限制/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /第十四天字数限制/第十四天字数限制/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /第十四天字数限制/第十四天字数限制/Assets.xcassets/emojiself avatar.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "emojiself avatar.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第十四天字数限制/第十四天字数限制/Assets.xcassets/emojiself avatar.imageset/emojiself avatar.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十四天字数限制/第十四天字数限制/Assets.xcassets/emojiself avatar.imageset/emojiself avatar.jpg -------------------------------------------------------------------------------- /第十四天字数限制/第十四天字数限制/Assets.xcassets/toolbar.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "toolbar.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "toolbar@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "toolbar@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /第十四天字数限制/第十四天字数限制/Assets.xcassets/toolbar.imageset/toolbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十四天字数限制/第十四天字数限制/Assets.xcassets/toolbar.imageset/toolbar.png -------------------------------------------------------------------------------- /第十四天字数限制/第十四天字数限制/Assets.xcassets/toolbar.imageset/toolbar@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十四天字数限制/第十四天字数限制/Assets.xcassets/toolbar.imageset/toolbar@2x.png -------------------------------------------------------------------------------- /第十四天字数限制/第十四天字数限制/Assets.xcassets/toolbar.imageset/toolbar@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十四天字数限制/第十四天字数限制/Assets.xcassets/toolbar.imageset/toolbar@3x.png -------------------------------------------------------------------------------- /第十四天字数限制/第十四天字数限制/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 | 26 | 27 | -------------------------------------------------------------------------------- /第十四天字数限制/第十四天字数限制/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第十四天字数限制/第十四天字数限制/Pch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Pch.swift 3 | // 第十四天字数限制 4 | // 5 | // Created by 霍驹 on 17/2/28. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | let WIDTH = UIScreen.main.bounds.size.width 12 | let HEIGHT = UIScreen.main.bounds.size.height 13 | let pix = UIScreen.main.bounds.size.width/750 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /第十天渐变及动画table/第十天渐变及动画table.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第十天渐变及动画table/第十天渐变及动画table.gif -------------------------------------------------------------------------------- /第十天渐变及动画table/第十天渐变及动画table.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第十天渐变及动画table/第十天渐变及动画table/Assets.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 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /第十天渐变及动画table/第十天渐变及动画table/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 | 26 | 27 | -------------------------------------------------------------------------------- /第十天渐变及动画table/第十天渐变及动画table/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第十天渐变及动画table/第十天渐变及动画table/Pch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Pch.swift 3 | // 第十天渐变及动画table 4 | // 5 | // Created by 霍驹 on 17/2/22. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | let WIDTH = UIScreen.main.bounds.size.width 12 | let HEIGHT = UIScreen.main.bounds.size.height 13 | let pix = UIScreen.main.bounds.size.width/750 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /第十天渐变及动画table/第十天渐变及动画table/TableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TableViewCell.swift 3 | // 第十天渐变及动画table 4 | // 5 | // Created by 霍驹 on 17/2/22. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class TableViewCell: UITableViewCell { 12 | 13 | 14 | let gradientLayer = CAGradientLayer() 15 | 16 | 17 | override func awakeFromNib() { 18 | super.awakeFromNib() 19 | // Initialization code 20 | } 21 | 22 | override func setSelected(_ selected: Bool, animated: Bool) { 23 | super.setSelected(selected, animated: animated) 24 | 25 | // Configure the view for the selected state 26 | } 27 | 28 | required init?(coder aDecoder: NSCoder) { 29 | super.init(coder: aDecoder) 30 | } 31 | 32 | override func layoutSubviews() { 33 | super.layoutSubviews() 34 | gradientLayer.frame = self.bounds 35 | } 36 | 37 | override init(style: UITableViewCellStyle, reuseIdentifier: String?) { 38 | super.init(style: style, reuseIdentifier: reuseIdentifier) 39 | gradientLayer.frame = self.bounds 40 | let color1 = UIColor(white: 1.0, alpha: 0.2).cgColor as CGColor 41 | let color2 = UIColor(white: 1.0, alpha: 0.1).cgColor as CGColor 42 | let color3 = UIColor.clear.cgColor as CGColor 43 | let color4 = UIColor(white: 0.0, alpha: 0.05).cgColor as CGColor 44 | 45 | gradientLayer.colors = [color1, color2 ,color3 ,color4] 46 | gradientLayer.locations = [0.0, 0.4, 0.85, 1.0] 47 | layer.insertSublayer(gradientLayer, at: 0) 48 | 49 | 50 | 51 | } 52 | } 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /第十天渐变及动画table/第十天渐变及动画table/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // 第十天渐变及动画table 4 | // 5 | // Created by 霍驹 on 17/2/22. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | let table = GradientTableViewController() 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | table.tableView.frame = self.view.bounds 18 | // table.tableView.delegate = self 19 | self.view.addSubview(table.tableView) 20 | } 21 | 22 | override func didReceiveMemoryWarning() { 23 | super.didReceiveMemoryWarning() 24 | // Dispose of any resources that can be recreated. 25 | } 26 | 27 | 28 | } 29 | 30 | -------------------------------------------------------------------------------- /第四天collection/Carousel.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第四天collection/Carousel.gif -------------------------------------------------------------------------------- /第四天collection/第四天collection.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/blue.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "blue.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/blue.imageset/blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第四天collection/第四天collection/Assets.xcassets/blue.imageset/blue.png -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/bodyline.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "bodyline.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/bodyline.imageset/bodyline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第四天collection/第四天collection/Assets.xcassets/bodyline.imageset/bodyline.png -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/darkvarder.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "darkvarder.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/darkvarder.imageset/darkvarder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第四天collection/第四天collection/Assets.xcassets/darkvarder.imageset/darkvarder.png -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/dudu.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "dudu.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/dudu.imageset/dudu.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第四天collection/第四天collection/Assets.xcassets/dudu.imageset/dudu.jpg -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/hello.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "hello.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/hello.imageset/hello.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第四天collection/第四天collection/Assets.xcassets/hello.imageset/hello.jpg -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/hhhhh.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "hhhhh.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/hhhhh.imageset/hhhhh.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第四天collection/第四天collection/Assets.xcassets/hhhhh.imageset/hhhhh.jpg -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/run.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "IMG_1517.PNG", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/run.imageset/IMG_1517.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第四天collection/第四天collection/Assets.xcassets/run.imageset/IMG_1517.PNG -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/wave.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "wave.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /第四天collection/第四天collection/Assets.xcassets/wave.imageset/wave.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimbaHJ/30DaysToLearnSwift/e77f78abf873ba872c8df8cf80565d1f3ff22f51/第四天collection/第四天collection/Assets.xcassets/wave.imageset/wave.jpg -------------------------------------------------------------------------------- /第四天collection/第四天collection/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 | 26 | 27 | -------------------------------------------------------------------------------- /第四天collection/第四天collection/CollectionCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CollectionCell.swift 3 | // 第四天collection 4 | // 5 | // Created by 霍驹 on 17/2/14. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class CollectionCell: UICollectionViewCell { 12 | 13 | 14 | var featuredImageView = UIImageView() 15 | var interestTitleLabel = UILabel() 16 | 17 | required init?(coder aDecoder: NSCoder) { 18 | super.init(coder: aDecoder) 19 | 20 | } 21 | override init(frame: CGRect) { 22 | super.init(frame: frame) 23 | updateUI() 24 | } 25 | 26 | override func layoutSubviews() { 27 | super.layoutSubviews() 28 | self.layer.cornerRadius = 5.0 29 | self.clipsToBounds = true 30 | } 31 | 32 | fileprivate func updateUI() { 33 | featuredImageView = UIImageView.init(frame: CGRect.init(x: 0, y: 0, width: 600*pix, height: 700*pix)) 34 | self.contentView.addSubview(featuredImageView) 35 | 36 | interestTitleLabel = UILabel.init(frame: CGRect.init(x: 0, y: 600*pix, width: 600*pix, height: 100*pix)) 37 | interestTitleLabel.backgroundColor = UIColor.white 38 | interestTitleLabel.alpha = 0.5 39 | interestTitleLabel.textAlignment = NSTextAlignment.left 40 | interestTitleLabel.textColor = UIColor.black 41 | interestTitleLabel.font = UIFont.systemFont(ofSize: 20*pix) 42 | self.contentView.addSubview(interestTitleLabel) 43 | } 44 | 45 | var model : Model?{ 46 | didSet{ 47 | interestTitleLabel.text = model?.title 48 | featuredImageView.image = model?.featuredImage 49 | } 50 | } 51 | 52 | } 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /第四天collection/第四天collection/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /第四天collection/第四天collection/Pch.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Pch.swift 3 | // 第四天collection 4 | // 5 | // Created by 霍驹 on 17/2/14. 6 | // Copyright © 2017年 霍驹. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | let HEIGHT = UIScreen.main.bounds.size.height 13 | let WIDTH = UIScreen.main.bounds.size.width 14 | 15 | let pix = UIScreen.main.bounds.size.width/750 16 | --------------------------------------------------------------------------------