+(BOOL)getSystemPhotoAuthority
{
BOOL agree=NO;
AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo];
if(authStatus == AVAuthorizationStatusAuthorized||authStatus == AVAuthorizationStatusNotDetermined)
{
agree=YES;
}else
{
agree=NO;
}
return agree;
}
+(BOOL)getSystemImageAuthority
{
BOOL agree=NO;
ALAuthorizationStatus author = [ALAssetsLibrary authorizationStatus];
if(author == ALAuthorizationStatusAuthorized||author == ALAuthorizationStatusNotDetermined)
{
agree=YES;
}else
{
agree=NO;
}
return agree;
}