The point at which the origin of the content view is offset from the origin of the scroll view.
Questions tagged [contentoffset]
140 questions
1
vote
0 answers
React native android scrollview - Content Inset / Content Offset not applied
SNACK - https://snack.expo.io/@dellybro/32f625
As the title suggests, when working with react native scroll view the content inset and content offset do not seem to be applied. Android and iOS both seem to have a different affect.
The following is…

Travis Delly
- 1,194
- 2
- 11
- 20
1
vote
1 answer
Can I keep the same position in my tableView after reloading the data?
I'm having issues with my tableView after I reloadData(). It always scrolls to the top. I don't know where I've messed it up since before it worked very fine maintaining the offset position.
I'm using an automatic dimension.
var currentCount: Int {
…

Mohamed Lee
- 267
- 1
- 3
- 18
1
vote
1 answer
Slot machine animation using UITableView
I need to implement slot-machine animation according to provided design and timings.
It should perform infinite scroll, until some event will be triggered. After that animation, it should slow down and stop on defined position
For this task I have…

Viktor
- 1,020
- 1
- 9
- 22
1
vote
1 answer
Assign UIScrollView Delegate And UICollectionView Delegate to the Same Class
I have a paging UIScrollView, each page being populated with a different view controller. Above the scrollview is a UICollectionView that acts as a menu bar. As you scroll through the scrollview pages, the menu bar moves just a little bit. You can…

yambo
- 1,388
- 1
- 15
- 34
1
vote
2 answers
UITableView scrolling on reloaddata
I have UITableview in my project.
I am getting new data when clicking add new button on footer.
here is my app(demonstrated)
https://pastenow.ru/e327ad5e4978777b280552c4e92f032d
When clicking on Add New Btn
there is some little scrolling to up. i…

Asger Amrahov
- 13
- 5
1
vote
1 answer
iOS tableView scrolls up even after contentoffset(0,0)
In my app, I have a Table view with a search view of weight 197 above table cell.
There is a button for toggle search on pressing of which the content of table view needs to be offset accordingly. But I am not able to get the needed one. Here is the…

Shanthi
- 11
- 1
1
vote
0 answers
How To Update UICollectionView With "reloadData"
I have UICollectionview which has very large content size and the thing is I want to scroll collectionview at the same time while processing collectionview datasource.
Now the problem is while processing and sorting my datasource array; my…

Vikram Sinha
- 581
- 1
- 10
- 25
1
vote
1 answer
ContentOffset issue in UIScrollview
I've a strange issue.Where I have a ScrollView and ContentOffset was already Set to it.
And I've made a Condition in its Delegate by the below Code.
-(void)scrollViewDidScroll:(UIScrollView *)scrollView{
if(scrollOffsetY > 90 && scrollOffsetY <…

Vicky_Vignesh
- 584
- 2
- 14
1
vote
1 answer
Scrolling UITableView to specific position using setContentOffset not working properly - ObjC
I saw many answers in SO which describes how can I scroll UITableView to the specific position.
I use setContentOffset for scrolling to particular position.
I meet a weird issue. If my tableView is half scrolled then setContentOffset is working…

Rahul
- 5,594
- 7
- 38
- 92
1
vote
1 answer
How to identify user tapped on Editor field in Xamarin forms?
First thing, I have an Editor.I can Identify if the user entered any text in that Edior.But i need to return something when the user tapped on the Editor. How to achieve this?
var msgEditor = new Editor
{
Margin = new…

Jeni
- 527
- 4
- 8
1
vote
0 answers
UIScrollView doesn't scroll upwards sometimes
I am using 2 scroll Views When the inner Scroll View is scrolled upwards, outer scrollView also moves upwards(positive contentoffset.y) and when inner SV's contentoffset.y goes less than y, both scroll Views come back to their original…

Karanveer Singh
- 961
- 12
- 27
1
vote
3 answers
stop animation in the scrollView content offset
I want to set the content offset of the scroll view WITHOUT ANIMATION.This is the simple code that I have applied but its not working:
[_scrollView setContentOffset:CGPointMake(self.frame.size.width*currentPage, 0) animated:NO];
After performing my…

Ghazalah
- 233
- 2
- 14
1
vote
0 answers
Swift - resignFirstResponder resets contentOffset on my UITextView. How come?
So I have a pretty simple app I am trying to build. Its basically a scrollable text field that fills up the entire screen.
When the user taps the screen, the keyboard appears and you can begin to edit on the line where you tapped.
If you tap in…

Nate4436271
- 860
- 1
- 10
- 21
1
vote
1 answer
offset date column content by id
I have a dataset as follows
Id Date1
121 2011-01-03
121 2011-01-03
121 2011-04-02
121 2011-08-14
121 2012-01-14
121 2012-05-12
975 2011-02-01
975 2011-02-01
975 2011-06-14
975 2012-01-06
…

Ezra Polson
- 235
- 3
- 13
1
vote
1 answer
Color the specific range of word by NSMutableAttributedString in a UITextView cause UITextView scroll to the top?
Here is a UITextView,on which i put long chapter(i wanna to make it just like a book.),when i press a word more than 2 seconds,(i set a long gesture here),then the word will be highlight(the following code can successfully hightlight the word,but…

Min Wang
- 305
- 4
- 16