감자주먹밥
close
프로필 배경
프로필 로고

감자주먹밥

  • 분류 전체보기 (92)
    • iOS (68)
      • Swift (14)
      • RxSwift (2)
      • UIKit (35)
      • SwiftUI (10)
      • Test (4)
    • ReactNative (0)
    • NodeJS (0)
    • 코퉤엣 (14)
    • Android (8)
    • Git (2)
  • 홈
  • 태그
  • iOS
  • Github
  • 방명록
[SwiftUI] Alert, ActionSheet 창 띄우기

[SwiftUI] Alert, ActionSheet 창 띄우기

SwiftUI 에서 Alert 창을 띄우기 위해서는 View의 Modifier인 .alert 메서드를 사용하면 된다. alert(_:isPresented:presenting:actions:message:) | Apple Developer DocumentationPresents 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프로젝트를..

  • format_list_bulleted iOS/SwiftUI
  • · 2023. 2. 27.
  • textsms
[IOS] Alert 알아보기

[IOS] Alert 알아보기

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", style: ...

  • format_list_bulleted iOS/UIKit
  • · 2022. 1. 13.
  • textsms
  • navigate_before
  • 1
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (92)
    • iOS (68)
      • Swift (14)
      • RxSwift (2)
      • UIKit (35)
      • SwiftUI (10)
      • Test (4)
    • ReactNative (0)
    • NodeJS (0)
    • 코퉤엣 (14)
    • Android (8)
    • Git (2)
최근 글
인기 글
태그
  • #SWIFT
  • #UIKit
  • #코딩테스트
  • #programmers
  • #ios
  • #Kotlin
  • #android
  • #백준
  • #tableView
  • #swiftUI
최근 댓글
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바