Questions tagged [contentoffset]

The point at which the origin of the content view is offset from the origin of the scroll view.

140 questions
0
votes
1 answer

Why does the UIScrollView automatically change contentOffset?

Question Describe : My App have 2 tabbar item . In the first Item , the viewcontroller have a view (the name is zpContainerView) ; a scrollView, it's zpContainerView's subView ; the scrollView add 3 subviews ; Now , i touch the iphone's screen and…
user5465320
  • 719
  • 2
  • 7
  • 15
0
votes
1 answer

Setting targetContentOffset of a scrolling scroll view while a reload takes place

I'm using a infinitive scrolling feature similar to this. Now my problem is that I want to set a target content offset after a reload has taken place. Currently I'm using the targetContentOffsetForProposedContentOffset of the UICollectionViewLayout…
testing
  • 19,681
  • 50
  • 236
  • 417
0
votes
1 answer

Changing view's alpha based on UIScrollView's contentOffset.x when scrolling multiple screens

I have a horizontal UIScrollView that has a width of 960. The UIScrollView contains 3 UIView's, each one set to a background color. The first one is pink, the second blue, and the third is green. What I need to do is change the alpha of the…
user3344977
  • 3,584
  • 4
  • 32
  • 88
0
votes
1 answer

Keeping UIScrollView Position after Interface Orientation Change

I have a UIScrollView that updates its frame after each interface orientation change, keeping its height but dynamically updating its width to always fill the new width. Since it is a horizontal scroll view with paging enabled, naturally, I am…
0
votes
0 answers

iOS UITableView content offset iOS7 moving tableview when loading

In my app i have a TableView which has a header that i want to hide initially until the user scrolls the tableview. My problem is when the view loads, for 1 second you can see the tableview moving up. I dont want to see this movement. How can i…
user3065901
  • 4,678
  • 11
  • 30
  • 52
0
votes
2 answers

ContentOffset issue in UIScrollView in UITableView

I've added a UIScrollView in each UITableViewCell of a UITableView. This is my code. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString* CellIdentifier = @"Cell"; …
Nazik
  • 8,696
  • 27
  • 77
  • 123
0
votes
1 answer

How to move up scrollview 's frame before scrolling contentView? (when scrollView starts at the middle of the screen)

My scrollview is at the vertical center of the screen, and a view1 is above it, at y=0. When I scroll down, the view1 is enlarged (this works fine, it creates a zoom). When I scroll up, I would like to move the scrollView up to the top of the…
Paul
  • 6,108
  • 14
  • 72
  • 128
0
votes
1 answer

uitableview drag down outside screen

I'm basically trying to achieve this effect: http://youtu.be/VBW2i0P11iI The tableview is a basic one that's pinned to it's superview with autolayout. The view underneath is added with the classic insertSubview:belowSubview: / addChildViewController…
alex
  • 957
  • 2
  • 9
  • 16
0
votes
1 answer

after dismissing a viewController, the contentOffset from my tableView was changed to (0, -64)

The following code is not working.It makes tableview to move from (0,0) content offset to (0,-64) content offset. -(BOOL)automaticallyAdjustsScrollViewInsets { return NO; } -(void)viewWillAppear:(BOOL)animated { [super viewWillAppear:YES]; …
iOSdev
  • 553
  • 5
  • 22
0
votes
2 answers

UITableView contentOffset issue in iOS 7

I am using RATreeView in one of my app, but facing some weird issue with content Offset (pls correct me if I am wrong). Visited many threads over "SO" about the same but no luck. I m having some checkbox in each cell of table view, there are n…
iLearner
  • 1,670
  • 2
  • 19
  • 45
0
votes
2 answers

how to change ContentOffSet of UIScrollView Xcode

I create one UIScrollView with programmatically code and I have one button in my view (not exist in UIScrollView). when I click on this button go to next page with modal transition. I create Cancel button in next page that when I click on it back to…
user3797431
  • 393
  • 1
  • 5
  • 15
0
votes
1 answer

UIWebView apparently scrolled after loading content from URL

I am loading an HTML document into a UIWebView with loadRequest:requestURL. The HTML content does not fit entirely into the view's frame. What surprises me that at the time the page has been loaded (when webViewDidFinishLoad:is called) the view's…
Drux
  • 11,992
  • 13
  • 66
  • 116
0
votes
1 answer

UIScrollView contentSize change changes contentOffset

I've looked at many solutions for this problem on here, but none of them seem to work for me. Here is some of my code: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath scrollOffset =…
reid55
  • 169
  • 3
  • 14
0
votes
2 answers

Convert Scrollview contentOffset to string

Im trying to convert the contentOffset from a ScrollView into a string. I have tried many ways but the closest I got was: label.text = [NSString stringWithFormat:@"%@", NSStringFromCGPoint([self.mainScrollView contentOffset])]; This worked but I…
0
votes
1 answer

hash scrolling navigation with sticky header, offset not working on firefox

I have a website with a stick to top header, when scrolling, half of my header disappear and the menu stick to top. the navigation uses hash, by clicking on a link of my menu, the page scrolls to the linked #. I've added a jscript to calcul the…
mmdwc
  • 1,095
  • 6
  • 27
  • 53