IOS SWIFT 오늘 날짜 구하기, 문자열로 출력하기 (NSData, NSDateFormatter)
123456789let today = NSDate() //현재 시각 구하기let dateFormatter = NSDateFormatter()dateFormatter.dateFormat = "yyyy년 M월 d일"var dateString = dateFormatter.stringFromDate(today)print(dateString) //"2016년 2월 21일" dateFormatter.dateFormat = "yyyy-MM-dd"dateString = dateFormatter.stringFromDate(today)print(dateString) //"2016-02-21"cs
IOS - SWIFT
2016. 2. 21. 17:56
IOS SWIFT 투명 네비게이션바 만들기, clear color navigationbar (UINavigationController)
123456789101112131415161718192021222324import UIKit class DetailViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() self.setNavigationBar() //네비바 셋팅 // Do any additional setup after loading the view. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } func setNavigationBar(){ let bar:UIN..
IOS - SWIFT
2016. 2. 21. 17:44
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday