Questions tagged [contentsize]

118 questions
41
votes
8 answers

UIScrollView adjusts contentOffset when contentSize changes

I am adjusting a detail view controller's state, just before it is pushed on a navigationController: [self.detailViewController detailsForObject:someObject]; [self.navigationController pushViewController:self.detailViewController …
Berik
  • 7,306
  • 2
  • 26
  • 38
16
votes
9 answers

How to increase width of Bootstrap container on Max width?

I've placed a DataTable within a Bootstrap div of type container. When I run the website on the browser's max width the container for the table adds a scrollbar and cuts off the last column in the table. I did try using a container-fluid div type as…
Brian J
  • 5,416
  • 19
  • 94
  • 189
15
votes
2 answers

detect changes to UIWebView's scroll view's contentSize

I'm trying to set a UIView at the bottom of the content of a UIScrollView, do to so I set the view's position to the scrollview's contentsize height. But my scrollview is a subview of a UIWebView so when images are loaded, the contentsize height…
Abel
  • 295
  • 1
  • 4
  • 18
12
votes
5 answers

Set starting point of content size for UIScrollView

How do I set the starting point of a UIScrollView? I would like to add a UIImageView left of the UIScrollView but changing the contentSize only adds scrolling room to the right of the scrollview. How do I add an ImageView left of the scrollView's…
gurooj
  • 2,060
  • 4
  • 21
  • 25
12
votes
4 answers

How to set UIScrollView contensize when content is load asynchronously

My view hierarchy is this PhotoDetailViewController.swift View UIScrollView UIImageView I set this up using storyboard, and add four constraints(top=0, bottom=0, leading=0, tailing=0) to UIScrollView, four constraints(top=0,…
paynestrike
  • 3,324
  • 14
  • 42
  • 69
12
votes
2 answers

UITextView doesn't update its contentSize

I'm dynamically sizing a UITextView's height and the height of the UITableViewCell it is embedded in when its content changes. But I also have the ability to paste in predefined bits of texts. As this pasting happens programmatically, the problem…
dkaisers
  • 784
  • 1
  • 7
  • 15
10
votes
5 answers

UIScrollView not scrolling regardless of large contentSize

I have created a UIScrollView and added subviews to it in Interface Builder, but I am not able to get it to scroll. I have looked at other similar questions, but I have set my contentSize appropriately. In fact, I have even tried setting incredibly…
golddove
  • 1,123
  • 2
  • 14
  • 30
8
votes
1 answer

func collectionViewContentSize in Swift3

I have update my Project to Swift3 in Xcode 8 and it comes this error but I have no idea what I can make there. I have already search in google but nothing founded. Have anyone an Idea what I can make ? Here the Error: Method…
Marshall
  • 85
  • 1
  • 5
8
votes
1 answer

What is the difference between 'tableView.contentSize' and 'tableView.frame.size'

tableView.setContentOffset(CGPointMake(0, tableView.contentSize.height - tableView.frame.size.height), animated: true) It works, but I wonder what actually are those two values: tableView.contentSize, tableView.frame.size
Bartłomiej Semańczyk
  • 52,820
  • 43
  • 206
  • 318
8
votes
7 answers

UITableView in storyboard not updating content size on rotation

I'm working on project targeted for iOS 6 that leverages storyboards and auto layout. In the storyboard there are many places where a UITableView is added as a subview to a view controllers view. This table view uses prototype cells from the…
atommclain
  • 593
  • 4
  • 12
7
votes
4 answers

Content size issue for UITableView in UIscrollView

I actually create a UIScrollView with a UITableView inside it with interface builder. I set the content size of my UIScrollView with: scrollView.contentSize = CGSizeMake(self.view.frame.size.width, self.view.frame.size.height); and I set my file's…
kschaeffler
  • 3,663
  • 7
  • 29
  • 41
7
votes
2 answers

Is there a maximum for UIScrollView contentSize?

I'm developing a small iPad-app with a Ganttchart which will show Events in the last 25 hours. I have 5 zoom levels each for 1 hour, 30 min, 15 min, 5 min and 1 min. My cells are 30 pix in width. Starting with the hourly Zoomlevel i have 25 * 30…
rkl_de
  • 73
  • 1
  • 4
7
votes
6 answers

What is the best way to disable horizontal scroll of UIScrollView?

In UIScrollView, I have content height and width greater than scrollview's size. So basically it can scroll horizontally and vertically. What I want is to scroll vertically only and I manage horizontally scroll using an UIButton by using below…
7
votes
4 answers

uitableview content size is not returning correctly swift

I'm using uitableview in container view, so want to set my container height based on content size height. So after reloading tableview i'm changing height of container.but it seems it is calculating based on estimated height. it's not giving actual…
siva krishna
  • 999
  • 1
  • 11
  • 22
7
votes
3 answers

Preventing "wrapping" of items in UICollectionView

I need a UICollectionView to display a grid that is potentially larger than the visible frame in both width and height, while maintaining row and column integrity. The default UICollectionViewFlowLayout allows sections to scroll off-screen, but it…
1
2 3 4 5 6 7 8