Top Margin Pitfall Of iMessage App Development between compact and expanded in swift 3.0.1
I just recently started an iMessage App, I am facing a tricky problem about autolayout of top margin. This post is about the issue and my solution.
NSDateFormatter And Finding World Time
When I was writing an app of finding world time, I find a really interesting issue of
NSDateFormatter.When we initialize a
[NSDate date], it’s GMT time, rather than the time depends on our local time zone; and when we wants to print the string of local time by using
NSDateFormatterit will add the time difference between tour local time zone and the GMT time directly.
Using recursion to get subset (python)
Recursion is more like a thinking method rather than an algorithm. We break up the whole thing into the first one and the rest, and the base case is the condition that we can solve directly.