일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 딥러닝
- 디자인패턴
- BigData
- ios toast message
- 모델
- 빅데이터
- Artificial Intelligence
- 기계학습
- Pycharm
- 인공지능
- python
- Deep learning
- 파이썬
- 앱
- 머신러닝
- view
- model
- Android
- toast
- Django
- 장고
- 시각화
- swift
- swift toast message
- Toast Message
- 템플릿
- APP
- AI
- Machine Learning
- IOS
- Today
- Total
목록ios toast message (3)
이끼의 생각
앞서 보여준 2가지의 토스트 메세지와 다르게 이번에 만들 토스트 메시지는 커스텀 클래스로 만들 겁니다. - 간단한 Toast 메세지 만들기(1) https://ikkison.tistory.com/12?category=761126 - 간단한 Toast 메세지 만들기(2) https://ikkison.tistory.com/13?category=761126 먼저 커스텀 클래스를 xcode 프로젝트에 생성합니다. (1) ToastView import UIKit import Foundation import UIKit open class ToastView: UILabel { var overlayView = UIView() var backView = UIView() var lbl = UILabel() class va..
func showToast() { let toastLabel = UILabel(frame: CGRect(x: view.frame.size.width/2 - 150, y: view.frame.size.height-100, width: 300, height : 35)) toastLabel.backgroundColor = UIColor.clear toastLabel.textColor = UIColor.black toastLabel.textAlignment = NSTextAlignment.center; view.addSubview(toastLabel) toastLabel.text = "토스트 메세지 입니다." toastLabel.font = UIFont.boldSystemFont(ofSize: 18) toast..
//Toast Message //How To Use : showToast(controller: self, message : "This is a test", seconds: 2.0) func showToast(controller: UIViewController, message : String, seconds: Double) { let alert = UIAlertController(title: nil, message: message, preferredStyle: .alert) alert.view.backgroundColor = UIColor.black alert.view.alpha = 0.6 alert.view.layer.cornerRadius = 15 controller.present(alert, anim..