From e41280ca84df66cfabdf1643d5557b1db5ae82c3 Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 27 Sep 2020 19:07:48 +0100 Subject: [PATCH] Fix an issue with UITextField's _placeholderLabel > *** Terminating app due to uncaught exception 'NSGenericException', > reason: 'Access to UITextField's _placeholderLabel ivar is prohibited. This is an application bug' --- .../ChhoeTaigi/SearchAll/SearchAllViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChhoeTaigi_iOS/ChhoeTaigi/SearchAll/SearchAllViewController.swift b/ChhoeTaigi_iOS/ChhoeTaigi/SearchAll/SearchAllViewController.swift index 26ecf31..adf2fd3 100644 --- a/ChhoeTaigi_iOS/ChhoeTaigi/SearchAll/SearchAllViewController.swift +++ b/ChhoeTaigi_iOS/ChhoeTaigi/SearchAll/SearchAllViewController.swift @@ -132,7 +132,7 @@ class SearchAllViewController: UIViewController, UITableViewDataSource, UITableV textfield.clipsToBounds = true textfield.textColor = #colorLiteral(red: 0.2745098174, green: 0.4862745106, blue: 0.1411764771, alpha: 1) - if let label = textfield.value(forKey: "_placeholderLabel") as? UILabel { + if let label = textfield.value(forKey: "placeholderLabel") as? UILabel { label.minimumScaleFactor = 0.8 label.adjustsFontSizeToFitWidth = true }