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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:15:38+00:00 2026-06-10T19:15:38+00:00

I have a scrollView with paging. I declare it: if(_fullPosterScroll == nil) _fullPosterScroll =

  • 0

I have a scrollView with paging. I declare it:

   if(_fullPosterScroll == nil) _fullPosterScroll = [[UIScrollView alloc] initWithFrame:rc];
    [_fullPosterScroll setDelegate:self];
    [_fullPosterScroll setBackgroundColor:[UIColor blackColor]];
    [_fullPosterScroll setCanCancelContentTouches:NO];
    _fullPosterScroll.indicatorStyle = UIScrollViewIndicatorStyleWhite;
    _fullPosterScroll.clipsToBounds = NO;
    _fullPosterScroll.pagingEnabled = YES;
    _fullPosterScroll.alwaysBounceHorizontal = NO;
    _fullPosterScroll.directionalLockEnabled = YES;

And after a tap i call a method:

[_fullPosterScroll setContentOffset:CGPointMake(_selectedPosterPosition*(_fullPosterScroll.frame.size.width), 0) animated:YES];
NSLog(@"%f",_fullPosterScroll.contentOffset.y);

Why after that in Log i have for example 225.00 ?! This should be 0!

  • 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-10T19:15:40+00:00Added an answer on June 10, 2026 at 7:15 pm

    I can’t see anything wrong with the code you’ve posted, but you should check to make sure that setContentOffset isn’t triggering any delegate methods that are changing offset.

    Also, Apple have a sample project, PageControl, that does exactly what you want, so you should look at that if you want a complete example.

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

Sidebar

Related Questions

I have a UIScrollview with paging enabled. There are 3 views (pages) inside this
I have a paging UIScrollView in which the user pages horizontally through images, like
I currently have an app that has a UIScrollView with paging as the primary
I have a scrollView with paging enabled and a number N of pages, which
I have a Paging UIScrollView with a contentSize large enough to hold a number
I have paging UIScrollView with images. I want to implement animated zooming of image
in the main view controller i have a scrollview and paging control. i have
So, I have a ScrollView which has cards on it. ScrollView must be paging
I have set paging property of scroll view to 'scrollview.pagingEnabled = YES'. When tested
I have images I have embedded into a UIScrollView object. The scrollView's orientation is

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.