The point at which the origin of the content view is offset from the origin of the scroll view.
Questions tagged [contentoffset]
140 questions
0
votes
1 answer
How to run a function on UiScrollView contentOffset Change?
I want to run a function on "UIScrollView contentOffset.x"(on each scroll) changes, in order to make some graphical changes dynamically according to my task requirement.
let scroll = UIScrollView.init()
scroll.frame = CGRect(x: 10, y: 10, width:…

M Nabeel Hussain
- 5
- 1
- 4
0
votes
0 answers
`contentOffset` does not execute when rect Y value of glyph is significantly distant from preceding rect
Anyone experience an issue with contentOffset when using it to scroll to a rect of a string in a UITextView but the view does not scroll at all? It is as if contentOffset does not know what to do with the rect passed to it. This error ocurrs only…

KDiaz
- 37
- 7
0
votes
0 answers
TableView scroll issue in iOS
In my application I have a table view which contains collectionview in each row. Its kind of a TV Guide (channels and programs). After launch table I am setting contentOffset for one collection-view to current time so all collection-views in a…

Naresh Gadamsetty
- 27
- 8
0
votes
1 answer
Tracking a specific value with contentOffSet
I want to change the frame of a view while the user is scrolling.
I'm checking the contentOffSet of the scroll view in scrollViewDidScroll, and I want to know when the contentOffSet reach a specific value. But I figure out if the user is scrolling…

it'sme2108
- 3
- 4
0
votes
0 answers
Content offset for RecyclerView
I want to calculate vertical or horizontal offset at runtime. The height of each row is not equal for my case.
To do this task, I tried some methods. But the result was not expected.
computeHorizontalScrollOffset: the length of the thumb within the…

us2956
- 476
- 12
- 27
0
votes
1 answer
Swift contentOffset scroll
I am developing a small application for tvOS where I need to show a UITextView.
Unfortunately sometimes this text can't fit inside the screen, that's why I need a way to scroll to the bottom of it programmatically.
I've tried using the following…

Valerio Corso
- 1
- 2
0
votes
2 answers
UITableView scroll jumps
Recently my app started doing scroll jumps when new ViewController was pushed like so:
I have tried different answers but nothing seems to work. I have learned that my app was setting negative offset to CGPointZero after I have set:
-…

Zuzana Paulis
- 941
- 1
- 8
- 19
0
votes
2 answers
How to do a sequence animation on a textview (swift3)
My code below is a button that when hit applies animation. Right now there are two animations. I would like to do a sequence the animations meaning have the 2nd animation not start until the first animation has completed.
var speed: CGFloat =…
user8105388
0
votes
0 answers
Scroll to view with ContentInset in ScrollView but there isn't enough extra space afterwards
I have a content view inside my scroll view that has a small height. The scroll view takes up the entire height of the containing view controller. The bottom most view in the content view is a text view. When the user taps on the text view the…

Alex Bollbach
- 4,370
- 9
- 32
- 80
0
votes
0 answers
iOS Swift 3 tableview content offset to far when emoji keyboard is called
To provide a chat functionality, i use a tableview which displays each message in a row. When the keyboard is shown, i push the content offset y-value up. That way, the last message you can read is still visible when the keyboard is opened. The…

Jochen Österreicher
- 683
- 2
- 11
- 25
0
votes
1 answer
How to allow UIScrollView to scroll below content offset 0?
I'm using UIScrollView to create recording timeline just like Voice Memo app. This is horizontal scrollview's frame at the beginning. I use CAShapeLayer to draw bars.
scrlViewBars.frame = CGRectMake(0, scrlViewBars.frame.origin.y, SCREEN_WIDTH,…

Hiren Prajapati
- 717
- 3
- 10
- 25
0
votes
1 answer
Track UIScrollView contentOffset all the time
I'm using a timer and print the contentOffset.y of a UIScrollView to track it all the time.
But the problems is UIScrollView updates its contentOffset value only after it is decelerated.
I want to know the contentOffset.y value in every millisecond…

thura oo
- 493
- 1
- 6
- 18
0
votes
0 answers
updating tableViewCell's height and moving tableView at the same time
i'm moving up my tableView (via setting contentOffset) and changing a specific (row no. 1 here ) cell's height at the same time , thats why i'm getting a shaky animation and also tableView restores itself to the default position (which is not…

remy boys
- 2,928
- 5
- 36
- 65
0
votes
1 answer
TableView ContentInset and ContentOffset
I trying to create a stretchy table view header and I saw this code on a post online:
override func viewDidLoad() {
tableView.contentInset = UIEdgeInsets(top: kTableHeaderHeight, left: 0, bottom: 0, right: 0)
tableView.contentOffset =…
user5228393
0
votes
1 answer
VBA Excel match A with either column D or E if first three letters match otherwise write "there"
On non-vba excel, I was trying to use this equation:
=IF(LEFT($A1,4)=LEFT($C1,4), VLOOKUP((LEFT($A1,4)&"*"),C1:C1,1,FALSE), "there")
but it is not always accurate because it is not offsetting when the word "there" used on the cell.
I need it…