1.Swift limit TextField The number of input bits is 10 bits:
string: String), Bool { else{ returntrue } string. Count- range.length returnten }
2.iOS float with double range and precision:
https://www.jianshu.com/p/ab37c083317b
// when the bill is too large, it causes the decimal point to be erased. PO bill["Billmoney"]! 5978501.1 // Let Formatmoney = String (format: "%.2f", (bill["Billmoney"] as? Double)!) // footpricelabel.text = string.getseparatedstring (OrgStr:String.stringValue (Formatmoney, DefaultValue: "0") )
3.whose view isn't in the window hierarchy:
This error simply says that the error is reported when the "Viewcontroller" is not loaded and the method is called in the Viewcontroller or Viewcontroller.
Self.dismiss (Animated:false, Completion: {Let VC=Personaacontroller () vc.personnum=Num//print (UIApplication.shared.delegate as? appdelegate)?. Window?. Rootviewcontroller.self)//whose view isn't in the window hierarchy varROOTVC = (uiapplication.shared.Delegate as? appdelegate)?. Window?. Rootviewcontroller while(ROOTVC?. Presentedviewcontroller)! =Nil) {ROOTVC= ROOTVC?. Presentedviewcontroller} ROOTVC?. Popup (CONTROLLER:VC, direction:. Center)})
Swift Code Summary 9