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 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...
Profile Photo
Ashutosh
Hello, I am new in iOS development. What is the best way of learning iOS and Programming also?
You could start learning objective C for iOS app development. Please contact us for more information.
Profile Photo
Vikas
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...
Profile Photo
Anuja

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

Ask a Question

Related Lessons

On the Job training is always best
On the job training always provides an opportunity to learn the best industry practices. While you work on real time you would encounter many challenges that will force you to learn many new things. Class...
Profile Photo

Developing iOS Apps Part 1
The Basics Swift opts to use a Javascript-like ‘var’ keyword to define any new variable. So for example to create a new variable with a bit of text in it, you would have this: var...
Profile Photo

P Balasubramanyam

0 0
View Comments0

Phone number validation in swift language
Simple phone number validation in swift ios 8 , Using this function you can easily check phone number . Also have some example for this using NSPredicate etc . you can see lots of method for number...
Profile Photo

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...
Profile Photo

Learning Path For Mobile Application Development
I. Traditional Approach: 1. Native Android Application Development: Android is a mobile operating system that runs on phones, tablets, smartwatches, TVs and more. You can learn Android Application Development...
Profile Photo

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