Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Firebase
- 한글
- Swift
- mac
- Git
- stack
- 개발자
- JPA
- UIButton
- appstore
- IOS
- FLUTTER
- github
- Archive
- darkmode
- Python
- Apple
- error
- Code
- view
- SwiftUI
- Xcode
- 웹뷰
- Realm
- MacOS
- iOS16
- Session
- Notification
- rxswift
- window
Archives
- Today
- Total
목록setTitle (1)
EEYatHo 앱 깎는 이야기
Swift ) .system타입 UIButton setTitle 애니메이션 없애기 - EEYatHo iOS
var myButton = UIButton(type: .system) ... myButton.setTitle("text", for: .normal) ... myButton.setTitle("text2", for: .normal) 위와 같이 .system 타입으로 선언한 버튼에, 두번째 setTitle을 하게 되면, 버튼의 텍스트들이 천천히 사라졌다가 나타나는 애니메이션이 적용됩니다. 이런 애니메이션을 원하지 않을 경우, var myButton = UIButton(type: .system) ... myButton.setTitle("text", for: .normal) ... UIView.setAnimationsEnabled(false) myButton.setTitle("text2", for: .normal..
iOS, Swift
2021. 3. 22. 16:14