Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8475189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:49:43+00:00 2026-06-10T17:49:43+00:00

Hi its a simple question to a hard problem (for me so far anyway)

  • 0

Hi its a simple question to a hard problem (for me so far anyway)

i dont consider myself to be a beginner programmer but for the love of god I cannot seem to be able to figure this one out…. I currently have a problem related to updating a uiimageview.. its not being updated when my slider moves left and right.. it does slow the application down a little bit when i drag it which tells me there are processes happening and tells me they are connected correctly the itnerface with their methods.. whats happening or what im doing at the moment is trying to retrieve image data for a specific frame specified by time to then be able to select it as a thumbnail depending on the position of the uislider. so its a manual thumbnail picker.

I have tried many things both by connecting it through interface builder and by doing it programatically.

this is what i have one so far:

.h file

the dot h file

.m file

the dot m file

the slider method for sliderValueChanged which gets called

slider method

and finally my class method that i use to help retrieve a thumbnail image returning nsdata... passing in a video and a specified time position. 

class methods to retrieve thumbnail

I have read here on stackoverflow that updating a uiimageview can cause memory leaks if updated regularly since it caches images.. and to use [UIImage imageWithData:] instead to avoid any leaks etc. so i have implemented this in my code yet my thumbnail view still fails to load the images based on the slider’s position. (the slider is created to have the min and max values set from 0 – to the duration of the video so that the slider can only ever have a value that can correctly pick a time frame in the video in question)

If anyone could guide me in how i could fix this problem.. it is beyond me for hours now! i appreciate the help. thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:49:45+00:00Added an answer on June 10, 2026 at 5:49 pm

    I realised what was happening here… the slider values i had passed into my method werent appropriate for what i required.

    in the class method it says CMTimeMake(value 1, value 2).. and after doing some research i understood how it worked.

    basically there is a time interval you specify in value 2 in my case it was 60.. based on some code i copied.. whatever you substitute value 1 for becomes a part of the time interval.. They are a numerator and denominator, so 1 /60 equals 1 60th of a second
    2/60 is equal to the time position of 2 60th of a second… if i wanted 3 seconds i would need to do 60*3 = 180 so

    180/60 equals 180 60th of a second which equates to 3 seconds in total… so because my slider values were mapped to the duration of the video which the maximum was 15 seconds… the higest time frame i could get using the code i wrote in my question… i could only get the
    15 60th of a second. which time frame wise not really a difference between the 1st 60th of a second hence the reason why i could not see the uimageview being updated…

    so to correct this i multiplied my slider values by 60 so that each value that gets changed because they were mapped to seconds.. i multiplied by 60 .. and of course the image updated like a charm. however now i need to figure out how to speed up this process since at the moment it seems synchronous as it lags the interface greatly

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Its a simple question, but I'm not aware of the answer and I couldn't
May be its a simple question but it's really driving me crazy. I just
I think its a rather simple question but I couldn't really find an answer
inHi, this question is fast, but from my point of view its pretty hard.
Hi this question or problem i have its very hard i have search and
This is probably a question that has an easy/simple/obvious answer, but I've found myself
This is probably a simple question but I'm having a hard time trying to
Well, I have a simple question, at least I hope its simple. I was
Sure it's a simple question, but I can't fix it, can somebody help me?
I know it's a simple question, but I have strange behaviour in here. <pre>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.