I have a URL ,the first time we make request and play videos. Now, I want to store the data in cache so that second time the video is played directly from cache rather that hitting the service again and downloading video. I don't want to save it in app directory. Kindly tell me how videos can be cached in objective C.

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

IT Professional Trainer with 12+ years of experience in IT Industry(Mobile TechLead, iOS, Android)

You can create an instance of NSCache and utilise its method for setting data(videos) and retrieving whenever it's required. You can find Sample code Apple ' NSCache' Documentation: NSCache is similar to NSMutableDictionary, with the differences being: 1. It is guaranteed to be thread-safe. 2....
read more
You can create an instance of NSCache and utilise its method for setting data(videos) and retrieving whenever it's required. You can find Sample code Apple ' NSCache' Documentation: NSCache is similar to NSMutableDictionary, with the differences being: 1. It is guaranteed to be thread-safe. 2. It is much slower to access. 3. It may throw out objects from time to time. You can set costs and limits, but they're not guaranteed to be followed. 4. It is not toll-free bridged to anything in CoreFoundation. 5. You can't query the number of objects that are in the cache. 6. You can't enumerate a cache. read less
Comments

Related Questions

I want to join an IT academy which can provide me 100% guaranteed job. Can you suggest some?
Hi Anuja, There is nothing or no one in the world who can guarantee you a job except your own hard work and will to succeed in life. A good tutor can guide you in the right direction and provide assistance...
Anuja
I want to be a web/ios/android developer though I have studied till class10. So can I do the course to work as a freelancer? M y main query is I have heard about many things which we get to study when we do B.Sc but I am not up to that level so can I do the course?
Hi Ashutosh , I like your confidence and would like to say definitively you can do the course , as you are upto 10 th class so it may be very difficult to get jobs in companies but if you will have good...
Ashutosh
How much fees for IOS developer training and its exact training time?
it's not about time, it's all about how quickly we can grasp all the iOS development techniques I teach u, I mean course could be for 2 r 3 months, 1 hr/day . some students even take 4 months to learn...
Shubham
What is the fees structure of IOS training and what is the time duration?
you will get different answers from different ppl and institutes....i would invite you to a conversation where we can discuss your needs to adapt the duration and thus the fees as well.
Shivangi
0 0
8
What courses can I do to become an iOS app developer specializing in games?
Hi Rajeev, You can take two approaches : 1) Learn the native iOS Game Development Framework. It is called SpriteKit. For 3D games, you have SceneKit and Metal. If you already have iOS App development...
Rajeev J
0 0
6

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

10 Ways My Life Changed When I Learned To Code
1. I have freedom to make my own schedule. 2. I earn more, but work fewer hours. 3. I can say “no” to job offers. 4. People come to me asking if I can work for them. 5. I never have to...

Working With Arrays in Swift
Swift Arrays:Like Objective C arrays Swift arrays are also collection of Objects The Difference is in swift we don't work directly with addresses.The declaration of Swift array is as follows The above...

iOS Interview Questions
Q1.What is property? Ans:Properties are used to access the instance variables from outside of class. Q2. What is synthesized? Ans:After you declare the property in objective­c . we have to tell...

MapKit Tutorial with Swift in iOS 8
Using Map Kit, the portion of the map that is displayed on the screen is referred to as the region. The region is defined by a center location and a span of the surrounding area to be displayed. Inside...

IOS App Development
Student could work on the normal laptop or system. Some of student are thinking that Mac operating system is mandatory for Learn IOS but this is not mandatory. Thanks Ajay

Recommended Articles

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Whether it was the Internet Era of 90s or the Big Data Era of today, Information Technology (IT) has given birth to several lucrative career options for many. Though there will not be a “significant" increase in demand for IT professionals in 2014 as compared to 2013, a “steady” demand for IT professionals is rest assured...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Looking for iOS Developer Training?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you