Published: 24 Jan 2019 › Updated: 24 Jan 2019
02. StopWatch
특이점은 뷰컨트롤러안에, 뷰안에 레이블을 두었고, 아래쪽에 테이블뷰를 넣었다.
StopWatch.swift 를 생성하여 NSObject를 받는 클래스를 생성
버튼 모양을 동그라미로 바꿔준다.(viewDidLoad에 작성, 모양을 1:1 aspect로 바꾸어야 원이됨.)
이후 딜리게이트 메소드도 구현한다.
changeButton 메소드를 구현하여 버튼 동작을 구현하고 아래 나머지 메소드를 작성한다.
--playPauseButton--
--resetLapButton--
Leave 02. StopWatch to:
Read more #ios posts
Best Posts From gunw
We have not curated any of gunw's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From gunw
- [Grammer] 26 - Custom Operators
- [Grammer] 25 - Operator Methods
- [Grammer] 23 - Bitwise Operators, 24 - Identity Operator
- [Grammer]21 - Ternary Coditional Operator, 22 - Range Operators
- [Grammer] 19 - Short-circuit Evaluation, Side Effect, 20 - Assignment Operators
- [Grammer] 16 - Overflow Operators, 17 - Comparison Operators, 18 - Logical Operators
- [Grammer] 13 - Data Types with Memory, 14 - Operator Basics, 15 - Arithmetic Operators
- [Grammer] 11 - Type Inference, Type Safety, 12 - Type Conversion, Type Aliases
- [Grammer] 09 - Boolean, 10 - Strings and Characters
- [Grammer] 07 - Naming Convention, 08 - Numbers