일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- css3
- effect
- 프론트엔드
- iOS 개발자
- 풀스택
- image
- iPhone
- jQuery
- 자바스크립트
- CSS
- HTML
- javascript
- 비전공 개발자
- MAC
- html5
- ipad
- 백엔드
- Animation
- xcode
- react
- button
- 비전공자
- front-end
- 개발자
- php
- keyframes
- hover
- 애니메이션
- SWIFT
- IOS
- Today
- Total
목록TiMER (3)
비전공자 개발일기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/oPVHK/btrTKHsfBbu/Kl6LbbZpq10402GwVkJLB1/img.gif)
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의 ..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/ct3JiZ/btrSUrxO5WZ/kYea6FZ5YEA1ongQuwHUlk/img.gif)
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..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/N3AY0/btrJmvWngke/ovL9ZbLjv6MrORBFh8tZT1/img.jpg)
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..