SHARE
TWEET

Untitled

a guest Jun 24th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @IBOutlet weak var todaysLbl: UILabel!
  2. @IBOutlet weak var subtaskLbl: UILabel!
  3. override func viewDidLoad() {
  4.     super.viewDidLoad()
  5.  
  6. }
  7.  
  8. override func viewWillAppear(_ animated: Bool) {
  9.     super .viewWillAppear(animated)
  10.     let dateFormator = DateFormatter()
  11.     dateFormator.dateFormat = "dd.MM.yyyy"
  12.     if let data = TODOList.mr_findFirst(with: NSPredicate(format: "date == %@", dateFormator.string(from: Date()))) as? TODOList{
  13.         todaysLbl.text = data.taskName
  14.  
  15.     }
  16.  
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top