Refresh photo gallery in swift - ios

I've made a photo gallery and now I want to know how to refresh it. If I open my app and have 5 photos in my library I see all of them. If I press on the home button and take another photo and open the app again I can't see that. So I have to close the app manually and restart to make it work

Related

save all app data Xcode

I'm starting now with swift and wanted to know how do I save the data from my app. I have text and photos in my app. how can I save this using the firebase or saving directly to the user's iphone?
I want the user to terminate an action and the app to save automatically.
an example the user added an image in the imageview using the photos library closed and left the app. when he reopened everything he did this as he had left.

Not able to come back to my app from Instagram after sharing photo using iPhone hooks

I want to share/post photo on Instagram from my app and I could do it using iPhone hooks which opens Instagram app.
But I couldn't find way to come back to my app after sharing photo.
Let me know if it is supported by Instagram. If not then please suggest alternative way for same.
This isn't supported with the instagram app, but in IOS 9 they introduced a button on the left of the status bar which says "back to.." to go back to whatever app opened this one. A rather nice unpublicised addition if you ask me

UIImagePickerController to take multiple pictures and save them in Document directory ony by one

I need my app to provide users to click multiple pictures. I want a layout with two separate buttons, one for clicking picture and another for saving the picture taken in the document's directory of filesystem. This screen will be presented and UIImagePickerController will be opened.
When user clicks first button, we will disable this button and show the picture obtained in an overlay. And show another button(this will be enabled now) to save this picture.
When user clicks another button, we will disable this button and save it in filesystem. After saving successfully, we will again enable the first button to take more pictures.
I have tried and implemented this app and it works perfectly at our end. But our some users report of app crashing when UIImagePickerOriginalImage key returned is nil.
This doesn't even happen to them frequently. Instead they face this crash after a long usage of app. However, we have tried of taking more 200 pictures and saving too. It didn't lead to any crash.
Please anyone suggest what might be the cause for this crash. Or any other better workaround to implement this functionality.

UIImagePickerController selects the wrong picture (or crashes) in iOS7 after deleting image

I have an app that uses a UIImagePickerController to allow a user to select a profile picture. I've noticed a bug in iOS7 where it selects the incorrect image if you delete an image from your photo stream while the UIImagePickerController is active.
To observe this bug in action you can use the Facebook app or any app which uses a UIImagePickerController such as the Twitter app.
Open Facebook iOS app --> tap profile pic --> tap "choose existing" --> minimize Facebook app --> open the Photos app --> delete some photos from the start of the photo stream --> go back to Facebook iOS app --> try selecting a photo --> the selected photo is NOT the photo that was tapped (or, if you tap the last image, the app crashes, presumably due to an array index out of bounds error).
It seems as though in iOS7 the UIImagePickerController doesn't refresh the photo stream when the app comes into the foreground. Obviously this bug could cause some serious user experience problems.
Hopefully Apple puts through a fix to this bug ASAP, but in the meantime I was wondering if anyone has any workarounds to this bug? The last thing I want is someone using my app to accidentally upload a photo that they would never want seen on the Internet.

Is it possible to add my app to the photo album's 'share via' button?

I've worked on an Android application that enable to send pics directly via the album photo. Just have to add a link to my app in the share via button.
Now I'm doing the same app for iPhone. That's why I want to know if that is possible to put my app to the list of propositions in that share via button.

Resources