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 7564745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:58:26+00:00 2026-05-30T13:58:26+00:00

How do I make the UIScroll view show complete views, not partial views? (Note)

  • 0

How do I make the UIScroll view show complete views, not partial views?
(Note) I don’t want it jumping to a complete view. It needs to move naturally or at least not immediate… needs to be smooth.

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-05-30T13:58:27+00:00Added an answer on May 30, 2026 at 1:58 pm

    If your views are all of a constant size and you just want left/right or up/down scrolling, set pagingEnabled on the scroll view to YES. Supposing you wanted your scroll view to be 320×480 but to show the sides of the next and previous pages (so, e.g., each thing inside the view was 280 points wide), you’d size the scroll view to be 280×480 but set masksToBounds to NO.

    If you have a more complicated scheme, install a scroll view delegate and act on scrollViewDidScroll:, paying attention to contentOffset. Probably you want to implement logic like:

    • add an observer on tracking; when it transitions to NO from ‘YES’ enable your logic inside scrollViewDidScroll: In there:

      • if a forced scroll is pending, cancel it
      • calculate where you’d force the scrolling to from the current position
      • schedule a scroll to there (which you’ll effect via setContentOffset:animated:) for half a second from now

    You can use a non-repeating NSTimer for the scheduling aspect. The logic you’ve essentially implemented is that if the user stops adjusting the view, wait for the natural inertia to end (which you’ll detect by the 0.5 second gap since last movement), then transition smoothly to the nearest aligned position.

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

Sidebar

Related Questions

its possible to make UIScrollView indicator always show? and not only when scrolling! Thank
I have a scroll view and I want to make it disappear whenever a
make is not only useful for building your programming project, but it seems to
I make a user control and then want to include it on a page
I have a UIScrollView that contains a UITextView (not editable). I can't make the
I want to make content of uiscrollview to be run in cycle. In other
I use UIScrollView to make large-sized (larger than 320px) UI on iPhone. I made
Make a new AS3 Document in Flash, paste in the following code and run
To make it short: hibernate doesn't support projections and query by example? I found
To make things easier when switching between machines (my workstation at the office and

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.