Note that there are some explanatory texts on larger screens.

plurals
  1. POUITableView vertical scrolling issue
    primarykey
    data
    text
    <p>I have a frustrating issue with UITableView vertical scrolling. I have an (apparently) functioning UITableView (table rows displayed properly, I can select rows and the proper action is performed, etc).</p> <p>However, I cannot fully scroll to the bottom of the view. I realize that this question has been asked many times, and I have tried to implement the suggestions given in earlier answers, to no avail. I suspect a fundamental misunderstanding on my part.</p> <p>I realize that the frame size needs to be larger than the contentSize for the tableView to scroll properly and I have tried to ensure that. Note that I have just picked a small horizontal contentSize for debugging purposes. I am sure it is something simple...</p> <p>Here is a code snippet that shows what I am doing.</p> <pre><code> self.testTable= [[UITableView alloc] initWithFrame:self.view.frame style:UITableViewStyleGrouped]; self.testTable.delegate=self; self.testTable.dataSource=self; self.view = self.testTable; NSLog(@"table: Width: %f height %f ",self.testTable.contentSize.width,self.testTable.contentSize.height); self.testTable.contentSize=CGSizeMake(320,200); NSLog(@"table: Width: %f height %f ",self.testTable.contentSize.width,self.testTable.contentSize.height); </code></pre> <p>My NSLog calls return this:</p> <pre><code>2013-04-02 13:23:53.332 TestSet[32358:907] table: Width: 0.000000 height 0.000000 2013-04-02 13:23:53.333 TestSet[32358:907] table: Width: 320.000000 height 200.000000 </code></pre> <p>For what it is worth:</p> <pre><code>@property(nonatomic,strong)UITableView *testTable; </code></pre> <p>Any advice gratefully received.</p> <p>Update - am trying this in landscape orientation</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload