ios - 适用于 iOS 和 iOS 7 的 Office 365 SDK

标签 ios office365

我使用适用于 iOS 的 Office 365 SDK 编写了一个应用程序。它适用于 iOS 8,但不适用于 iOS 7。请给我一些建议

最佳答案

您不能在 iOS 7 中运行,因为在: .../orc/impl/impl/JsonParser.m 使用代码:

-(id)initWith : (objc_property_t)属性{

NSString *typeString = [NSString stringWithCString:property_getAttributes(property) encoding:NSUTF8StringEncoding];
NSArray *attributes = [typeString componentsSeparatedByString:@","];

self.Type = [attributes objectAtIndex:0];
self.Name = [NSString  stringWithCString:property_getName(property) encoding:NSUTF8StringEncoding];

if([self.Name containsString:@"$$$_$$$"]) return nil;

if ([self isComplexType]) {
    self.SubStringType = [self.Type substringWithRange:NSMakeRange(3, [self.Type length] -4)];
}
return self;

containsString是iOS 8中存在的NSString类的函数,iOS7不支持。

关于ios - 适用于 iOS 和 iOS 7 的 Office 365 SDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32325712/

相关文章:

ios - 在 IOS 中使用 DatePicker 而不是键盘的两个单独的文本字段

ios - UIWebview中的嵌套stringByEvaluatingJavaScript迁移到WKWebview

ios - 在 UIWebView 中显示授权提示

java - 使用 javamail api 发送的 html 电子邮件正文在 Outlook 中显示为乱码

使用 Office 365 REST API 搜索电子邮件发件人地址

office365 - 将从 Office 365 REST API 返回的日历 ID 映射到 EWS API 返回的日历 ID

azure - Office 365 访问已被条件访问策略阻止。访问策略不允许发行 token

ios - 来自 UIActivityItemSource 的多个数据

ios - CGContextClip - 填充交叉点

ios - Apple Watch 的预处理器宏?