-1

我正在使用Office365从我的 iOS 应用程序创建事件。我的问题是我可以从模拟器插入事件,但不能从 iOS 设备插入事件。下面是我的代码。

代码 : -

MSOutlookEvent *eventToCreate = [snippetLibrary outlookEventWithProperties:@[toEmailAddress]
                                                                           subject:subject
                                                                              body:body
                                                                             start:start
                                                                               end: end
                                       ];
    [snippetLibrary createCalendarEvent:eventToCreate
                         completion:^(MSOutlookEvent *addedEvent,  NSError *error) {}

出现错误:-

Error Domain=Error in the Request Code=400 "The operation couldn’t be completed. (Error in the Request error 400.)" UserInfo=0x1767db60 {error={
    code = RequestBodyRead;
    message = "Cannot convert the literal '0' to the expected type 'Edm.Boolean'.";
}}

谢谢期待!!!

4

1 回答 1

0

我已经使用以下更改解决了这个问题:

第 1 步:- Office365 SDK -> 选择 OData 文件夹 -> 选择 Property.m 文件

第 2 步:替换 Property.m 文件中的代码

-(bool)isBoolean{
    return [self.Type isEqualToString:@"Tc"] || [self.Type isEqualToString:@"TB"];
}
于 2015-12-01T07:03:38.427 回答