일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- php
- ipad
- 자바스크립트
- keyframes
- 풀스택
- 개발자
- 백엔드
- iOS 개발자
- CSS
- react
- xcode
- 애니메이션
- HTML
- effect
- image
- front-end
- SWIFT
- iPhone
- IOS
- MAC
- html5
- button
- css3
- javascript
- hover
- 비전공 개발자
- 비전공자
- 프론트엔드
- jQuery
- Animation
- 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..