iOS) UIView.animate(...) ์ ๋ฉ๋ชจ๋ฆฌ๋ฆญ์ด ๋ฐ์ํ์ง ์๋์?
Is it necessary to use [unowned self] in closures of UIView.animateWithDuration(...)? ์ด ๊ธ์ ์์ stackoverflow ์ง๋ฌธ์ ์ฝ๊ณ ์ ๋ฆฌํด๋ณธ ๊ธ์ ๋๋ค. ์์ฑ์๋์ ์ง๋ฌธ์ ์๋์ ๊ฐ์๋ค. ์๋์ ์ฝ๋๋ ๋ฉ๋ชจ๋ฆฌ ๋ฆญ์ ํผํ ์ ์๋์? UIView.animateWithDuration(1, animations: { [unowned self] in self.box.center = self.boxTopRightPosition }, completion: { [unowned self] completed in self.box.hidden = true }) ์ด ๊ธ์๋ ๊ฝค๋ ๋ง์ ๋ถ๋ถ๋ค์ด ์ฐ๊ฒฐ๋์ด ์๊ธฐ ๋๋ฌธ์ ์ ์ ํ ์ดํด๋ด์ผ ํฉ๋๋ค. ๐ง ์ฐ์ ์์ a..
iOS
2022. 8. 23. 19:28
TAG
- rxswift
- MOYA
- WWDC
- WidgetKit
- MVVM
- async/await
- Notification
- IOS
- projectsetting
- configurable widget
- Protocol
- github
- UserDefaults
- ์๋ฒํต์
- containerBackground
- urlsession
- WWDC22
- Firebase
- Algorithm
- Objective-C
- YPImagePicker
- watchOS
- RxCocoa
- CloneCoding
- Widget
- Swift
- SwiftUI
- 2022 KAKAO TECH INTERNSHIP
- OpenSourceLibrary
- APNS
์ต๊ทผ์ ์ฌ๋ผ์จ ๊ธ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
๊ธ ๋ณด๊ดํจ
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
๋งํฌ
- Total
- Today
- Yesterday