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.
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.