iOS,Objective-C,iPhone,iPad,版本问题

时间:2023-01-12 17:55:02

How can we know an app will work in all version. For example I am working a project in which this code works fine in version 7, But does not work in version 8 :

我们如何才能知道应用程序适用于所有版本。例如,我正在使用一个项目,其中此代码在版本7中正常工作,但在版本8中不起作用:

_selectorType = ImageTypeChooseImage;
UIImagePickerController *imagePicker = [[UIImagePickerController alloc]init];
        imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
        imagePicker.allowsEditing = YES;
        imagePicker.delegate = self;
        [_viewController  presentViewController:imagePicker animated:YES completion:nil];    but in latest version above code does not run, for latest version I this code runs fine:

------------------------------------------------------------------------ Works fine in version 8 :

-------------------------------------------------- ----------------------在版本8中正常工作:

[[NSOperationQueue mainQueue] addOperationWithBlock:^{
    [self openPhotoPicker:sourceType];
}];

In short, How do we know, if an app runs fine in a particular version, So, it will also run in all version. (Obviously, we do not have device with all version, so that we can run and ensure)

简而言之,我们怎么知道,如果一个应用程序在特定版本中运行正常,那么它也将在所有版本中运行。 (显然,我们没有所有版本的设备,因此我们可以运行并确保)

1 个解决方案

#1


0  

First of all - test your app in All relevant simulators: different devices and different SDKs.

首先 - 在所有相关的模拟器中测试您的应用程序:不同的设备和不同的SDK。

Secondly - there isn't any alternative for real devices. after you test it with simulator - the QA should check it with a real device.

其次 - 对于真实设备没有任何替代方案。在使用模拟器测试之后 - QA应该使用真实设备进行检查。

#1


0  

First of all - test your app in All relevant simulators: different devices and different SDKs.

首先 - 在所有相关的模拟器中测试您的应用程序:不同的设备和不同的SDK。

Secondly - there isn't any alternative for real devices. after you test it with simulator - the QA should check it with a real device.

其次 - 对于真实设备没有任何替代方案。在使用模拟器测试之后 - QA应该使用真实设备进行检查。