일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- image
- pod install
- format형식
- Kotlin
- SwiftUI_Preview_Provider
- ios15
- android
- CoreLocation
- MapKit
- ViewModifier
- segue
- cocoapods
- UIStackView
- programmers
- Java
- autolayout
- NotificationCenter
- 백준
- ios
- UserDefaults
- Appearance변경
- SWIFT
- alamofire
- 코딩테스트
- kakaomap
- snapkit
- Alert
- EventKit
- AsyncImage
- swiftUI
- Today
- Total
목록Alert (2)
감자주먹밥
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/b3Ctqu/btr0JO0EkEC/kS1i96fU9VUKXQMaCKCfd0/img.png)
SwiftUI 에서 Alert 창을 띄우기 위해서는 View의 Modifier인 .alert 메서드를 사용하면 된다. alert(_:isPresented:presenting:actions:message:) | Apple Developer Documentation Presents an alert with a message using the given data to produce the alert’s content and a string variable as a title. developer.apple.com 그런데 SwiftUI는 IOS 14.0을 지원하고, 새로 지원하는 alert modifier는 IOS 15.0 부터 가능하다. (13.0도 SwiftUI를 지원했던 것으로 기억하는데, SwiftUI프로..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/NCxHm/btrqzSwhNms/EfDw2CCzKPYpBa27Ed1FMK/img.png)
tableView를 배우면서 여러가지를 부가적으로 배웠는데 그 중 어플에서 가장 많이 사용되는 Alert에 대해 알아보겠습니다! 왼쪽은 Alert, 오른쪽은 ActionSheet로 불립니다! Alert는 경고, 중요정보, 문제사항을 알릴 때 사용이 됩니다. ActionSheet는 사용자가 고를 수 있는 액션이 여러 개일 때 사용됩니다. 일단 Alert를 생성하는 법 부터 알아보겠습니다. //Alert 생성 let alert = UIAlertController(title: "Hello", message: "This is Alert", preferredStyle: .alert) //AlertAction 정의 let actionDefault = UIAlertAction(title: "default", styl..