swift - AppDelegate.applicationDidBecomeActive不会触发

时间:2017-03-06 08:33:24

标签: ios swift swift3

AppDelegate.applicationDidBecomeActive在重新打开应用程序后会注意到。

let formatter = DateFormatter()         
formatter.locale = NSLocale(localeIdentifier: "en_US_POSIX") as Locale!   

//Specified date format
formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss"

//Style can be medium, full and short as per the need.
formatter.dateStyle = .medium
let parsedDateString = formatter.date(from: stringDate)

0 个答案:

没有答案