skip to Main Content

Is it possible to turn selected properties/ columns of an NSManagedObject back to fault to optimise memory usage? – Ios swift

Currently, I have a note application, which I am using the following CoreData structure. extension Note { @nonobjc public class func fetchRequest() -> NSFetchRequest<Note> { return NSFetchRequest<Note>(entityName: "Note") } @NSManaged public var heavy_body: String? @NSManaged public var lite_title: String? @NSManaged…

VIEW QUESTION

Convert Date to required format – Ios swift

I need to convert "2022-01-20T00:00:00.000Z" to "dd MMM yyy" format. I have tried doing it as suggested in a stackoverflow answer but it returns nil func convertDate(date:String)-> String{ let dateFormatterGet = DateFormatter() dateFormatterGet.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZ" let dateFormatterPrint = DateFormatter() dateFormatterPrint.dateFormat…

VIEW QUESTION
Back To Top
Search