All Questions
Tagged with nsfilemanager uiimage
19 questions
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) -> ...
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://...
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 ...
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 ...
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 ...
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 ...
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 [...
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 ...
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 ...
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 *...
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 ...
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 ...
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 ...
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 ...
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 ...