Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

Swift photo loaded from file rotated 90 degrees [duplicate]

I'm taking UIImages and sending them over iOS' Multipeer framework. Here's the steps I take to do so: /// Save images to filesystem before sending over Multipeer func save(image: UIImage) -> ...
Mark's user avatar
  • 7,419
0 votes
1 answer
969 views

How to store multiple images to document directory and fetch the path in Swift

I am working on Swift application. I am getting server response like below [[“image_url": https://someurl1, "title": Title1], ["image_url": https://someurl2, "title": Title2], ["image_url": https://...
Anilkumar iOS Developer's user avatar
0 votes
1 answer
407 views

Deleting and Image and Re-Writing it back again produces errors

I am trying to build an app, where user works with images and creates structs which contain several images with corresponding values. when the user fills in all the information and presses save the ...
lotiq's user avatar
  • 51
0 votes
1 answer
765 views

Swift 3 adding an Image to Documents and Retrieving

I feel like I am missing something major as I don't receive any errors or null values, but anytime I try to retrieve my image it returns "" because it doesn't exist? This is how I am passing the ...
Torewin's user avatar
  • 907
0 votes
2 answers
176 views

Why saving and loading UIImages in documents folder doesn't work properly in iOS 8+?

I've been trying to save and load UIImages in my app's Documents folder or preferably temp folder (so every time my app gets closed images will be deleted) but they aren't working correctly. I've ...
Reza.Ab's user avatar
  • 1,215
0 votes
2 answers
225 views

Load image from the file after rewrite it - UIImage

I have silly problem with loading image from the file. I have two views putted to UITabBarController. At the first view user can load his image from the Photo Library or Camera. Second view present ...
Dzeremix's user avatar
  • 478
0 votes
1 answer
272 views

writeToFile does not work after removeItemAtPath

I have an iOS app that at times needs to store UIImage objects locally. I am using [UIImagePNGRepresentation(image) writeToFile:full_path options:NSAtomicWrite error:nil]; to save the image and [...
Supertecnoboff's user avatar
1 vote
1 answer
829 views

Loading file from Directory to UIIMAGE doesnt work

So i'm downloading an image using DownloadTask , and than save the image in the Cache Directory with name for my own uses : let fileManager = NSFileManager.defaultManager() let ...
Jackky White's user avatar
0 votes
1 answer
368 views

How to get date and filesize from a picture?

If pictures are loaded into an app from a album, how is it possible to get the filesize in MB and the date of that picture displayed on a app like on the screenshot below? I know you can retrieve the ...
Jan's user avatar
  • 663
0 votes
1 answer
251 views

How to compress a UIImage in order to send it to a server faster

I need to send an image to a server in chunks of 512 bytes. I am getting the image with: - (void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *...
just ME's user avatar
  • 1,827
1 vote
2 answers
999 views

save image to subfolder of /library/Application Support/bundleID_name/... iOS

The following code works without error or exception - but still, it does not do what it should ! I wanted to save an image into the iOS library/Application Support folder. More precisely, the image ...
iKK's user avatar
  • 7,042
1 vote
2 answers
584 views

how do we know that the writing file is done [duplicate]

I am downloading image from server and saving that locall [imageData writeToFile:filePath atomically:YES]; but how does I know when the writing is over to update the UI. I have searched for a call ...
AMohan's user avatar
  • 534
45 votes
3 answers
45k views

Storing images locally on an iOS device

Some iOS photo-related apps store images created with the app somewhere other than the photo library. For example Fat Booth shows a scrolling list of photos created with the app at app start-up. Note ...
SundayMonday's user avatar
  • 19.8k
0 votes
2 answers
578 views

How to uniquely identify UIImage picked from UIImagePickerController?

I have picked an image from photo library using UIImagePickerController. Now I want to save that image in documents folder. I have also got the url of that folder. Problem is what name should I ...
Shahrukh Malik's user avatar
0 votes
1 answer
1k views

How to save uiimage in a directory on a given nsurl?

I have fetched UIImage from photos library in ipad using UIImagePickerController. Now I want to save that image in a directory that is associated with my app and contains already added images. I have ...
Shahrukh Malik's user avatar

15 30 50 per page