Showing the status of uploading images in ios - ios

I want to upload some images to the server. But I want to do all the things in the background so that I can do other works when the data uploading to the server. And I want to show the status in another view controller. How to do it?

Related

Obj-c: How do I capture an image in an iOS app programmatically and push it?

My app (iOS obj-c) displays a graph that tracks a user's breath during a test. When the test is complete, I want to send an image of the graph to a database. How do I capture the graph as an image from the app display, and how do I push an image using POST?

Show several Local Notifications without creating new one

My scenario that I need to show the first Local Notification using Swift and then using the same identifier add another Local Notification, but without showing it as a popup in iOS device. So basically the flow would be like this:
Starting upload... <-- Show on the screen and adds to the Tray bar
Uploading photos... <-- Does not shows on the screen, but clears all the notifications and add another one in Tray bar silently (or changes previous one)
Uploading data... <-- Same as Uploading photos...
Finished uploading... <-- Same as Uploading photos...
Tried different ways, on Android it is not hard to do that, but iOS makes everything hard to do, is it even possible? :)
Thanks!
The reason it works on Android is because the "state showing" notifications are very Android thing. iOS is not designed for this kind of stuff because you almost never do something in the background of an app that also needs to be reflected to the user while user is outside of an app. So the real answer to your question is no. In iOS environment it is not possible to simulate Android way of showing status changes in a notification.

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.

iOS WKWebView File upload failure on iPhone

In our app we use WKWebView to display web contents, but the file upload works incorrectly.
On iPhone we could browse from photo library (or take picture) but after the file has been selected, a thumbnail image shows up on the right side of the file input and after that the webpage quickly (or as I see, the whole ViewController) reloads itself (and webpage with th default URL). No image uploaded to server.
BUT!!
On iPad with the same OS version we could successful upload photo or captured image.
Any idea?
Thanks!
My bad! In the viewWillAppear function I load an url. So every time when the app come back from background, or another app gives back the control, this lifecycle event will be called, therefor in my case the webview always reload the default url.

How to upload images in the background in ios using Afnetworking

I want to upload images from an iOS app to a php server. I am currently using POST Multi-Part Request in AFNetworkingOperationManager.
What I want to do is that when a user taps to upload image, Its starts uploading in the background and then a user can migrate away to a different controller. And when the upload the finished, The image is added to the list of images in a different controller where they are displayed in a table view just like twitter.
Can I accomplish this using AFNetworking?
Yes ,you can get it, First ,I aways get a mutableArray instead of some paths of picture, then you can upload them in background.

Resources