Crashlytics在我的一个应用程序中报告了这次崩溃,无论我做什么,我都无法重现它.这种情况发生在大约5%的用户身上,所以这是一个非常重要的事情.我发布了崩溃报告的截图以及崩溃报告中提到的方法.不知道怎么解决这个问题?
这是应用程序崩溃的地方:
#pragma mark - custom transformations
-(BOOL)__customSetValue:(id<NSObject>)value forProperty:(JSONModelClassProperty*)property
{
if (!property.customSetters)
property.customSetters = [NSMutableDictionary new];
NSString *className = NSStringFromClass([JSONValueTransformer classByResolvingClusterClasses:[value class]]);
if (!property.customSetters[className]) {
//check for a custom property setter method
NSString* ucfirstName = [property.name stringByReplacingCharactersInRange:NSMakeRange(0,1)
withString:[[property.name substringToIndex:1] uppercaseString]];
NSString* selectorName = [NSString stringWithFormat:@"set%@With%@:", ucfirstName, className];
SEL customPropertySetter = NSSelectorFromString(selectorName);
//check if there's a custom selector like this
if (![self respondsToSelector: customPropertySetter]) {
property.customSetters[className] = [NSNull null]; // this is line 855
return NO;
}
//cache the custom setter …Run Code Online (Sandbox Code Playgroud) 我正在尝试创建一个类似卡拉OK的应用程序,但我遇到了一个问题.
我有一首歌作为mp3和相应的歌词显示在UITextView中.我想突出/强调(或类似的东西)从该mp3文件中听到的单词.我有相应的每个单词的时间(startTime,endTime,duration),但我不知道如何突出显示它们.
我已经搜索了Stack Overflow,但是已经发布的问题都没有解决我的问题.
我已经看到UITextView可能不适合我的要求,但我不知道还有什么用.
我在WWDC 2011上看过类似的东西:核心动画"Bouncing Ball"演示,但我无法实现它.
请帮我找到一种方法.
自iOS 11推出以来,我一直在Fabric中遇到此崩溃,我不知道是什么原因造成的。这是堆栈跟踪:
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x180d78910 objc_msgSend + 16
1 SystemConfiguration 0x1828fd644 reachPerformAndUnlock + 540
2 CoreFoundation 0x181b53404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
3 CoreFoundation 0x181b52c2c __CFRunLoopDoSources0 + 276
4 CoreFoundation 0x181b5079c __CFRunLoopRun + 1204
5 CoreFoundation 0x181a70da8 CFRunLoopRunSpecific + 552
6 GraphicsServices 0x183a53020 GSEventRunModal + 100
7 UIKit 0x18ba5178c UIApplicationMain + 236
8 App 0x102923e90 main (main.m:14)
9 libdyld.dylib 0x181501fc0 start + 4
Run Code Online (Sandbox Code Playgroud)
任何帮助,将不胜感激。
我想知道是否有可用的API显示Apple Watch的可用性.我还不想写一个Apple Watch App.在花时间开发手表版本(当然,如果可能的话)之前,我想做一些分析,看看实际用户有多少百分比的Apple Watch.
ios ×4
xcode ×2
apple-watch ×1
crash ×1
highlight ×1
iphone ×1
jsonmodel ×1
text ×1
uitextview ×1