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 |
Tags
- window
- darkmode
- Xcode
- 개발자
- mac
- MacOS
- Swift
- Apple
- Archive
- IOS
- 한글
- SwiftUI
- error
- iOS16
- Notification
- JPA
- rxswift
- appstore
- 웹뷰
- Code
- UIButton
- Session
- Realm
- view
- Firebase
- geofencing
- 이미지
- FLUTTER
- github
- Git
Archives
- Today
- Total
목록System (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