Post

Replies

Boosts

Views

Activity

Comment on Using NSSortDescriptor(key: "date", ascending: true
Hi DMG, I have been without any luck to get this to sort correctly, so I changed the ascending to false and that works, but of course I can't find how to change the attribute 'date' from a string. I changed it in Attributes to a Date but of course many errors pop up ( Cannot assign value of type 'Date?' to type 'String?') I read somewhere but cannot find it on how to convert a 'date' String to use for sorting? Any thoughts on where to find an article I can read. Thanks for any help. Drew
Mar ’22
Comment on Firing a Timer & Resigning the keyboard after a number of characters have been entered(19)
I do have the final return it is further down after one more "if". } } } if textField ==Age { return !(textField.text!.count > 2 && (string.count) > range.length) } Return true }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’24
Comment on Using NSSortDescriptor(key: "date", ascending: true
Hi Michaela, It is sorted by the highest (first)day number. They sorted like below: Mar 9, 2022 Mar 8,2022 Mar 7, 2021 Mar 6,2022 Mar 5, 2022 Mar 4, 2022 Mar 3, 2022 Mar 26, 2022 Mar 26,2021 Mar 23, 2022 Mar 11, 2022 etc... I did not know where to put the 'public' on the var realDate, so I left it out. maybe that is the issue? Thanks again, Drew
Replies
Boosts
Views
Activity
Mar ’22
Comment on Using NSSortDescriptor(key: "date", ascending: true
Thank you Michaela, I will try this out when I get back tonight. I appreciate your time. Andrew
Replies
Boosts
Views
Activity
Mar ’22
Comment on UITableViewRowAction Deprecated
fixed before its declared issue , but it still populates the deleted row after re-opening.
Replies
Boosts
Views
Activity
Mar ’22
Comment on UITableViewRowAction Deprecated
After moving to handler, I now get an error Closure captures 'deleteActions' before its declared (pointing to the closure after handler:
Replies
Boosts
Views
Activity
Mar ’22
Comment on UITableViewRowAction Deprecated
Thank you Claude I am going to try now, ill get back to you.
Replies
Boosts
Views
Activity
Mar ’22
Comment on Using NSSortDescriptor(key: "date", ascending: true
Hi DMG, I have been without any luck to get this to sort correctly, so I changed the ascending to false and that works, but of course I can't find how to change the attribute 'date' from a string. I changed it in Attributes to a Date but of course many errors pop up ( Cannot assign value of type 'Date?' to type 'String?') I read somewhere but cannot find it on how to convert a 'date' String to use for sorting? Any thoughts on where to find an article I can read. Thanks for any help. Drew
Replies
Boosts
Views
Activity
Mar ’22
Comment on Using NSSortDescriptor(key: "date", ascending: true
Thank you for the explanation DMG, you are correct it is a String. I will look into changing that.
Replies
Boosts
Views
Activity
Feb ’22