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

  • SEARCH
  • Home
  • 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 8028483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:08:56+00:00 2026-06-05T00:08:56+00:00

in my app I have a UIImageView representing a chalk. The user can pick

  • 0

in my app I have a UIImageView representing a chalk. The user can pick that up and drag it over the screen to draw with it.

I implemented that using touchesBegan, touchesMoved and touchesEnded. In touchesMoved I move the center of my UIImageView to the current touch location and draw a line with core graphics from the last to the current location.

This works well but the image view movement isn’t very smooth and it also lags behind the touch. I already tried to use a UIPanGestureRecognizer (didn’t recognize the gesture) and a UIScrollView in which I placed the chalk (didn’t really figure out how to configure it so that it could be moved far enough in all directions).

Can you give me some hints how to improve the quality of my chalk movement?

Thanks!

  • 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-05T00:08:57+00:00Added an answer on June 5, 2026 at 12:08 am

    I rewrote how the movement is calculated and it is a little smoother now. Not perfect, but it’s enough.

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

Sidebar

Related Questions

I have a small app that allows the user to draw on the screen
I have a subview in my app that contains a UIImageView. The user can
I have an app that uses cgcontext to draw things onto a UIImageView that
I have an app that shows a series of UIImageView s on a ScrollView
In my iPhone app, I have an image on the screen (UIImageView). I would
I have a simple app that just displays a UIImageView. For some reason the
in my app i have UIImageView inside UIScrollview which i can zoom in and
I am writing a simple app where I have a UIImageView that when clicked
I have an app that lets the user take a picture with his/her iPhone
I have a very simple app that processes touches on a UIImageView derived view.

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.