Posts

Post not yet marked as solved
3 Replies
736 Views
Am I doing something wrong or is it a bug? I am getting 21000 year when parsing 01/01/00 string to date using the "MM/dd/yy" format: NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"MM/dd/yy"]; NSDate *originalDate = [NSDate dateWithTimeIntervalSinceReferenceDate:-24 * 60 * 60 * 366]; NSString *jan01String = [dateFormatter stringFromDate:originalDate]; NSDate *jan01Date = [dateFormatter dateFromString:jan01String]; NSLog(@"originalDate: %@, jan01String: %@, jan01Date: %@", originalDate, jan01String, jan01Date);output:2016-07-14 15:44:49.723 NSDateFormatterTests[5414:1537640] originalDate: 2000-01-01 00:00:00 +0000, jan01String: 01/01/00, jan01Date: 12099-12-31 22:00:00 +0000
Posted
by BlixLT.
Last updated
.
Post not yet marked as solved
0 Replies
515 Views
Hello,How can one skip "sharing summary" window (the one that shows owner and other participants, and that has "Add People" button) and show Add People view right away, when there is only one participant (owner). I see, that Notes do that, but I cannot find a way to achieve it. I am using NSSharingService:... NSSharingService *sharingService = [NSSharingService sharingServiceNamed:NSSharingServiceNameCloudSharing]; ... [sharingService performWithItems:itemProviders];But it always shows summary (participants) view even if there is only 1 owner and I cannot find a way to customize it - skip that view and show Add People view instead. Am I missing anything?
Posted
by BlixLT.
Last updated
.