我使用适用于 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/