티스토리 뷰
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 | //ViewController import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } @IBAction func buttonTapped(sender: AnyObject) { // alertView를 삽입 var alertView = UIAlertController(title: "Stop! SmartPhone!", message: "D.N.U!", preferredStyle: UIAlertControllerStyle.Alert) // alertview에 확인버튼 삽입 alertView.addAction(UIAlertAction(title: "return", style: UIAlertActionStyle.Default, handler: nil)) // 현재 viewcontroller에 추가하기 self.presentViewController(alertView, animated: true, completion: nil) } } | cs |
'[Swift] Notebook' 카테고리의 다른 글
Swift 키보드 내리기 예제 코드 (0) | 2016.04.20 |
---|---|
Swift - 이미지 앨범에서 불러오고, 다른 View에 넘기기 예제 (0) | 2016.04.20 |
Swift - local Date&Time View (0) | 2016.04.19 |
Swift - PickerView를 통하여 데이터 가져오기 (0) | 2016.04.19 |
Swift - CollectionView 페이지 이동하기 (0) | 2016.04.19 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Swift
- lambda
- pycon
- code review
- nginx
- FTP
- Python
- boto3
- grib
- project
- API
- css
- admin
- serverless
- swift3.0
- 파이썬
- CocoaPods
- app
- jupyter
- 개발
- ubuntu
- AWS
- IOS
- Django
- Apple
- s3
- lib
- uWSGI
- 기상청
- OpenAPI
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함