iOS/iOS Swift Udemy - AngelaYu

iOS swift Eggtimer - timer, progress bar

Developer-Michelle 2022. 10. 23. 10:52

https://easy-coding.tistory.com/92

 

Swift 타이머(Timer) 사용

60초 카운트다운(CountDown)으로 동작하는 타이머 사용 예제입니다. 예제 코드 //타이머 변수 선언 var timer : Timer? //타이머에 사용할 번호값 var timerNum: Int = 0 //타이머 시작 public func startTimer()..

easy-coding.tistory.com

 

https://crazydeer.tistory.com/entry/iOSSwift-Progress-Bar-%EC%82%AC%EC%9A%A9%EB%B2%95

 

// egg button 클릭시 한번에 progress bar가 다 차게끔 하는 코드

progressbar.progress = 1.0

 

// How to indicate the remaining time on progress bar?

percentageProgress = secondsPassed / totalTime

'iOS > iOS Swift Udemy - AngelaYu' 카테고리의 다른 글

디버깅 5단계  (0) 2022.10.24
iOS swift Int, Float 계산 순서  (0) 2022.10.24
dictionary practice  (0) 2022.10.22
iOS switch문 연습  (0) 2022.10.20
Section 8: EggTimer / UIButton currentTitle 출력  (0) 2022.10.20