• Official API collection worthy of attention in China


    Project address: https://github.com/marktony/A… This page only collects some official APIs in China. For other versions, please click here. catalog note Travel Dictionary online retailers Map film instant messaging Developer website Express inquiry Travel? social contact video weather Picture and image processing take-out food Message push music cloud speech recognition comprehensive note Windows client has opened […]

  • IOS saves the picture to the album and gets an instance of the image file name


    Examples are as follows: – (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage]; if (picker.sourceType == UIImagePickerControllerSourceTypeCamera) { UIImageWriteToSavedPhotosAlbum(image,self,@selector(image:didFinishSavingWithError:contextInfo:),NULL); } } – (void)image:(UIImage*)image didFinishSavingWithError:(NSError*)error contextInfo:(void*)contextInfo { if (error) { Dlog (@ “picture save failed! “”; }else{ Dlog (@ “picture saved successfully! “”; } } This method can save pictures from other sources to […]

  • Solution to crash when saving pictures to album in IOS app


    Environmental Science: iPhone Version 11.0.3 ,  Xcode Version 9.0 Question: When maintaining the app yesterday, it was found that the application crashed while saving the pictures after taking pictures. The output is as follows: This app has crashed because it attempted to access privacy-sensitive data without a usage description.  The app’s Info.plist must contain an […]

  • How to get sandbox path and save pictures to album


    Several ways to obtain directory in iPhone sandbox: //Get sandbox home directory path NSString *homeDir = NSHomeDirectory(); //Get documents directory path NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *docDir = [paths objectAtIndex:0]; //Get caches directory path NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); NSString *cachesDir = [paths objectAtIndex:0]; //Get TMP directory path NSString *tmpDir = NSTemporaryDirectory(); […]

  • IOS development selects photos or photos from album


    One line of code for image selection // // gzhPhotoManager.h //Picture selection // //Created by Guo Zhihe on May 26, 2020 //All rights reserved // #import #import “ViewController.h” NS_ASSUME_NONNULL_BEGIN @protocol gzhPhotoManagerDelegate; @interface gzhPhotoManager : NSObject +(instancetype)instance; ///Select Picture ///@ param controller current controller ///@ param target agent ///@ param psize select the size of the […]

  • Taro practice: developing Netease cloud music


    Project address https://github.com/abc-club/t… Like can star Explain Built by taro cli, and used with typescript and DVA to match wechat applet and H5 (because taro.getbackgroundaudiomanager is not compatible with H5, currently H5 terminal cannot play normally) Part of the code reference from https://github.com/lsqy/taro- Function First, start the server. The interface service is provided by neteasecloudmusicapi. […]

  • Detailed explanation of the function of selecting photos from albums in Android Development


    The example of this article describes the Android development and implementation of the function of selecting photos from albums. To share with you for your reference, as follows: Actual rendering: Code implementation: 1. Permission configuration2. Click event binding3. Album access4. Set the picture according to the path5. Other methods Jurisdiction First, add the following permissions […]

  • Example of saving picture to album function implemented by Android


    The example of this article describes the function of saving pictures to albums developed and implemented by Android. To share with you for your reference, as follows: If you don’t talk much, the effect is first: Click the picture to callSavebitmapfromview (view view) of savephoto;Method to save pictures automatically //Click the picture to save imageView.setOnClickListener(new […]