일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 |
30 |
- SWIFT
- iOS 개발자
- xcode
- 풀스택
- IOS
- button
- MAC
- 백엔드
- effect
- 자바스크립트
- HTML
- react
- Animation
- image
- php
- 개발자
- 애니메이션
- css3
- 비전공자
- 프론트엔드
- javascript
- front-end
- keyframes
- iPhone
- jQuery
- html5
- CSS
- hover
- ipad
- 비전공 개발자
- Today
- Total
목록TiMER (3)
비전공자 개발일기
import UIKit import AudioToolbox enum TimerStatus { case start case pause case end } class ViewController: UIViewController { @IBOutlet weak var timerLabel: UILabel! @IBOutlet weak var datePicker: UIDatePicker! @IBOutlet weak var cancelBTN: UIButton! @IBOutlet weak var progressView: UIProgressView! @IBOutlet weak var startBTN: UIButton! @IBOutlet weak var imageView: UIImageView! // date picker의 ..
0 ~ 60초 사이의 타이머를 설정하고, START 버튼을 누르면 1초씩 슬라이드 및 레이블이 바뀌며 0초가 되면 알림이 울림, 도중에 RESET을 누르면 초기 화면으로 되돌아감 import UIKit import AVFoundation class ViewController: UIViewController { @IBOutlet weak var mainLabel: UILabel! @IBOutlet weak var slider: UISlider! weak var timer: Timer? var number = 0 override func viewDidLoad() { super.viewDidLoad() configureUI() } func configureUI() { mainLabel.text = "Set t..
Click 👇 to start/pause the timer @property --n { syntax: ""; inherits: true; initial-value: 0; } @property --t { syntax: ""; inherits: true; initial-value: #000; } @property --r { syntax: ""; inherits: true; initial-value: #000; } @property --b { syntax: ""; inherits: true; initial-value: #000; } @property --l { syntax: ""; inherits: true; initial-value: #000; } .d { width: 77px; /* size */ disp..