UITextView에 입련 힌트를 보여줄 수 있는 Placeholder를 추가해줄 수 있는 클래스
간단하다.
링크로 들어가 클래스 파일만 추가하고 해당 텍스트뷰의 placeholder에 힌트만 적어주면 된다.
(ex : textview.placeholder = "힌트")
정말 편리하다.
설명이된 블로그
https://finnwea.com/blog/adding-placeholders-to-uitextviews-in-swift
git-hub
https://gist.github.com/tijme/14ec04ef6a175a70dd5a759e7ff0b938
'Swift > 팁' 카테고리의 다른 글
UserDefaults 와 Array (0) | 2017.09.22 |
---|---|
텍스트 필드에서 숫자만 입력받기 (0) | 2017.09.03 |
HTTP Networking Framework - Alamofire (0) | 2016.02.03 |
StatusBar hidden 하기 (Swift) (0) | 2015.04.08 |
swiftdoc.org (0) | 2015.01.20 |