NSString *path=[[NSBundle mainBundle] pathForResource:@"视频名称" ofType:@"mp4"];
if(UIVideoAtPathIsCompatibleWithSavedPhotosAlbum(path)){
UISaveVideoAtPathToSavedPhotosAlbum(path,nil,nil,nil);
}else {
//NSLog(@"no available");
UIAlertView *alert=[[UIAlertView alloc] initWithTitle:nil message:@"no available"delegate:self cancelButtonTitle:nil otherButtonTitles:nil];
[alert show];
[alert release];
}
视频保存与分享教程
本文详细介绍了如何在iOS和Android设备上将视频保存到相册并分享至社交媒体平台的步骤和注意事项,确保用户能够轻松地管理和分享自己的视频内容。
945

被折叠的 条评论
为什么被折叠?



