文件名称:OKPersianDate-swift:使用Swift结合波斯语-Jalali-Shamsi日期与iOS的核心日历称为NSCalendar
文件大小:42KB
文件格式:ZIP
更新时间:2024-05-26 04:58:09
Swift
OKPersianDate-swift 工作原理: let date = NSDate () let calender = NSCalendar ( calendarIdentifier : NSCalendarIdentifierPersian) let components = calender ? . components ( NSCalendarUnit ( UInt . max ), fromDate : date) let year = components ! . year let month = components ! . month let day = components ! . day txtDate. text = " \( year ) / \( month ) / \( day ) "
【文件预览】:
OKPersianDate-swift-master
----README.md(479B)
----OKPersianDate-swift()
--------OKPersianDate-swift.xcodeproj()
--------OKPersianDate-swiftTests()
--------OKPersianDate.png(30KB)
--------OKPersianDate-swift()