Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8994987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:32:53+00:00 2026-06-15T23:32:53+00:00

I understand that I can’t programmatically delete photos from my app . Because Apple

  • 0

I understand that I can’t programmatically delete photos from my app . Because Apple writes that we can only add photos

To save a still image to the user’s Saved Photos album, use the
UIImageWriteToSavedPhotosAlbum function. To save a movie to the
user’s Saved Photos album, use the
UISaveVideoAtPathToSavedPhotosAlbum function.

But I find project that have photos in project, so I can delete photos from this app by clicking delete icon (but still it crashes then =) ) project

And now I see only two ways:

  1. Save photos in my project folder and then I can do with it what I want. Can I do it? I think no =(
  2. Open standart Photos app from my app (open with…) but I read some threads about it, and I understood that it’s impossible. That’s right?
  3. Update! I written this point below. Can I create links in my app to photos in Photo Library? And then, if I want to delete photo from my app, I will delete link, so i will not see photo in my app, but it still stay in Photo Library. Does it possible?

So after all my searching I haven’t found a solution. Are their some ways to solve my problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:32:55+00:00Added an answer on June 15, 2026 at 11:32 pm

    On Youtube I find next video and I understand that I can save photo to document directory. It was next code in video

    UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
    NSData *data = UIImagePNGRepresentation (image);
    NSString *myGrabbedImage = @"myGrabbedImage.png";
    NSArray *path = NSSearchPathForDirectoriesInDomainns (NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentDirectory = [path objectAtIndex:0];
    NSString *fullPathToFile = [documentDirectory stringByAppendingPathComponent:myGrabbedImage];
    [data writeToFile:fullPathToFile atomically:YES];
    

    So I understand that is simple to save photo from Photo Library to my array, and then open photos from array. And I will can than simply delete photos by remove them from my array. Ok, but now I have 2 questions:

    1. How I can distinguish photos that i will save in my array? If I will allocate same photo in Photo Library it will be save some times – it’s not good.
    2. So it will be work only with PNG images?

    PS Sorry, if this questions very newbiest, but my brain exploded after allday searching.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand that we can set the various style attributes from code behind using
From my reading of some android forensic articles i understand that sqlite records can
From the docs, I understand that WebSphere MQ can support messages up to size
I understand that MPI_init can only be called more than once per executable instance.
I understand that .NET FileStream's Flush method only writes the current buffer to disk,
I understand that I can call ToString().IndexOf(...), but I don't want to create an
I understand that Git can be used without a central repository. However, I am
I understand that I can change a sql table using the follow sp: EXEC
I understand that this can be done at release using the maven-gpg-plugin. However, I
I understand that spring can manage your sessions for you, if configured like so:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.