0
如何更改日曆的名稱?我有:在iOS中重命名EKCalendar
EKCalendar *cal;
cal=[store calendarWithIdentifier:@"5F9A5BE0-03A9-4FE8-BD1E-2647F39E268F"];
cal.title = @"Calendar custom 2";
cal.source = localSource;
NSError *error = nil;
BOOL saved = [store saveCalendar:cal commit:YES error:&error];
NSLog(@"%d -> %@",saved,error);
但這並不保存,本刊:
0 -> Error Domain=EKErrorDomain Code=15 "That calendar may not be moved to another account." UserInfo=0xb05c8a0 {NSLocalizedDescription=That calendar may not be moved to another account.}
有人可以幫助我!
你爲什麼改變一個源代碼? –