iOS - download multiple images at once, best library to use [closed] - ios

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 months ago.
Improve this question
For my iPhone app, I have to download approximately 300 images and store them in CoreData for later use. I have those pictures online, as files, stored in a folder on my server. I want to be able to inform the user of the progress, remaining time, and so on.
I have always been using NSURLConnection and it works great, but just for one image. If I try to download multiple images, it will work, but because they are separate requests, I'm not able to inform the user of the progress.
That's why I'd like to use a library to do this, but the one I most liked hasn't been updated since 2011...: http://allseeing-i.com/ASIHTTPRequest
What could I do to resolve this issue? Use another library? Or are there any solutions?

There is Alamofire if you use swift. If you use objective-c there is AFNetworking.
Both have a very simple methods to load the image even asynchronously. You can even track the progress with the framework.
Check these out! these are what you are looking for
Alamofire
AFNetworking

Related

iOS: Blocking content in screenshots [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I have a problem regarding scammers in my app:
In the private chat between users, users may feel comfortable sending nudes or other sensitive information
The other user is a scammer and might screenshot the information and will re-sell it else where or use it to blackmail the user in some capacity.
I can detect screen recordings and if there is an active capturing in progress can hide content
However with screenshots I can only detect the screenshot after the fact but not beforehand to black out content.
Are there any known code patterns or SDKs that assist with this?
iOS doesn't allow it, There are no observers for screenshots before being taken. And you can't do anything about it, Because it's just not possible to stop someone from taking screenshots, both physically and digitally. You might want to look into other solutions to protect user data.
The only SDK I know of is ScreenShieldKit
There's this answer that provides an alternative, but I've not had a chance to test it out.

Swift Database with real time sync from the server [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm actually creating my first personal project with swift which is an app that will present every prospect in the next NFL draft with info about them. I want to do kind of a database for the users to be able to browse around every player.
What I don't know how to do yet is how should I do to store the data. I thought about realm or coreData but I want to find a solution that will allow me to sync the data from a server to update the info in real-time for the users. There is no user data to update or save. I find the MongoDB Realm platform but I don't find a lot of resources about it. If anyone has any idea for how I should do, already thank you!
Have a nice day,
Matteo!
I've made good experiences with Firestore. Its free (up to a certain usage) and has quite some good and clear documentation.
https://firebase.google.com/docs/firestore/query-data/listen
I agree with the other answer. Firebase is a fantastic realtime database to use for this specific idea. It's extremely easy to get started and the documentation is straight forward. I just started using it a couple weeks ago after switching over from AWS.

Where is the API for "Invisible Ink" located? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have secrets that need to be shared in my application, and would like to adopt the "Invisible Ink" feature that is new in iOS 10.
https://youtu.be/n5jXg_NNiCA?t=1h27m30s
Since I'm creating a greenfield application (version 1) I think this visual element of consistency is a good thing to include in my app.
Is the invisible ink UX available for developers?
First and foremost, the invisible ink view is inside a private framework, and using private frameworks will cause your app to be rejected in the App Store reviewing process. Still, for the community's sake, here's your answer (I'm sorry I got it to you in Obj-C, I'll try and come back later to update it to Swift):
You need to go around using dlopen to load the ChatKit framework manually in your app:
dlopen("/System/Library/PrivateFrameworks/ChatKit.framework/ChatKit", RTLD_LAZY);
// or use RTLD_NOW if you need it loaded immediately
Then, instantiate a CKInvisibleInkImageEffectView using NSClassFromString:
id invisibleInk = [[NSClassFromString(#"CKInvisibleInkImageEffectView") alloc] initWithFrame: yourFrame];
[invisibleInk performSelector:#selector(setImage:) withObject: yourUIImage];
//You likely want to put the InvisibleInkView right over an UIImageView containing the very same image
That should do the trick for you. Remember to actually add the InvisibleInk view wherever you want using yourView.addSubview(invisibleInk), and have fun.

Call Dial Screen in iOS App [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I want to have a screen exactly similar to the call dial screen on the call App on the iOS app that I am developing. Is there a way to have that screen in the app without actually implementing it?
If not, what would be the best way to design it? I have been trying to find some code which people might have developed which I can use?
To get this to run within your app you would need to design a copy from scratch unfortunately there's nothing built in to just call this as a view.
If you want to redirect people to call a number you can use the following:
NSURL *phoneURL = [NSURL URLWithString:#"tel:0123456789"];
[[UIApplication sharedApplication] openURL:phoneURL]];
The best way to design it is pretty straightforward as you already have access to it, that screenshot and photoshop would be the way forward, though I'm not sure you'd get through the app store approval process using that.
The below is a pretty nice control I've used myself before, take a look https://www.cocoacontrols.com/controls/jcdialpad
You need to rebuild it yourself, but this might help you out for the code:
https://github.com/hbang/Dialer

trigger.io - Looking for data storage possibility [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I know this is not a technical question but I don't know where to ask elsewhere.
I use the very cool toolkit called trigger.io to develop apps for both android and ios. Now I would like to use something like a database to display data in my app.
Firstly I found a realtime backend called firebase: http://www.firebase.com/
Nice but it takes a while until one gets access to it since it is still in beta.
Then I found a cloud service called Kinvey: http://www.kinvey.com/ Also interesting, but it is free as long as only 200 users download the app.
So do you know any alternatives to store data and use it for my app?
That would be very helpful,
thanks enne
Sure. Parse is an easy option. Basic plan to get start is $0 a month.
Also, there is nothing stopping you from bundling (or download and saving and caching) a json file for use in your trigger.io app.

Resources