How to programmatically get iOS's alphanumeric version string

前端 未结 6 667
离开以前
离开以前 2020-12-05 14:20

I\'ve been working with the nice PLCrashReport framework to send to my server the crash reports from my user\'s iOS devices.

However, to symbolicate the crash report

6条回答
  •  一个人的身影
    2020-12-05 14:45

    Why don´t you try this?

    NSString *os_version = [[UIDevice currentDevice] systemVersion];
    
    NSLog(@"%@", os_version);
    
    if([[NSNumber numberWithChar:[os_version characterAtIndex:0]] intValue]>=4) {
        // ...
    }
    

提交回复
热议问题