update Xcode and android projects

This commit is contained in:
2017-11-06 00:03:57 +00:00
parent 11c26555a4
commit 05c5bd1bdb
5 changed files with 43 additions and 31 deletions

View File

@@ -941,7 +941,7 @@ void ui::Canvas::export_equirectangular_thread(std::string file_path)
//int ret = stbi_write_png(name, m_latlong.getWidth(), m_latlong.getHeight(), 4, latlong_data.get(), m_latlong.stride());
#ifdef __IOS__
[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
NSURL* url = [NSURL fileURLWithPath:[NSString stringWithUTF8String:name]];
NSURL* url = [NSURL fileURLWithPath:[NSString stringWithUTF8String:file_path.c_str()]];
PHAssetChangeRequest *changeRequest = [PHAssetChangeRequest creationRequestForAssetFromImageAtFileURL:url];
changeRequest.creationDate = [NSDate date];
} completionHandler:^(BOOL success, NSError *error) {