Re: [iPhone] How to scroll to UITableView footer view

2010-05-02 Thread Scott Anguish
contentSize is the correct way to do this. It gives a ‘buffer zone’ at the top and bottom (and sides if you wish) on the scroll view. On May 1, 2010, at 11:04 PM, Luke the Hiesterman wrote: > UITableView is a subclass of UIScrollView. So, you can ask for its > contentSize and then call scrollR

Re: [iPhone] How to scroll to UITableView footer view

2010-05-02 Thread Scott Anguish
if by footer view, you mean content that is at the end of a table view, I suggest you read the UIScrollView Guide, specifically the issues regarding contentOffset. On May 2, 2010, at 11:14 AM, Scott Andrew wrote: > What about making the rect your view's actual bounds. Something like... > > C

Re: [iPhone] How to scroll to UITableView footer view

2010-05-02 Thread Scott Andrew
What about making the rect your view's actual bounds. Something like... CGRect footerBounds = [footerView bounds]; CGRect footerRectInTable = [tableView convertRect:footerBounds fromView:footerView]; [tableView scrollToRect:footerRectInTable animated:YES]; This should scroll to the footer view

Re: [iPhone] How to scroll to UITableView footer view

2010-05-01 Thread Tharindu Madushanka
Actually this doesn't seem to scroll to footer view :( Following is the code I have, i am continuously adding cells. Now I want to scroll to bottom footer view. Following code doesn't seem to scroll to the most bottom footer view. [tableview beginUpdates]; [tableview insertRowsAtIndexPaths:[NSArr

Re: [iPhone] How to scroll to UITableView footer view

2010-05-01 Thread Fritz Anderson
On 1 May 2010, at 9:52 PM, Tharindu Madushanka wrote: > How can I scroll to a UITableView footer all the time, while adding cells to > table view content. > > Is there some way similar to scrollToRowAtIndexPath: , to scroll directly > into my bottom footer view after adding new cells ? What succ

Re: [iPhone] How to scroll to UITableView footer view

2010-05-01 Thread Luke the Hiesterman
UITableView is a subclass of UIScrollView. So, you can ask for its contentSize and then call scrollRectToVisible:animated: with a rect that lies at the end of the contentSize. Luke On May 1, 2010, at 7:52 PM, Tharindu Madushanka wrote: > Hi, > > How can I scroll to a UITableView footer all th

[iPhone] How to scroll to UITableView footer view

2010-05-01 Thread Tharindu Madushanka
Hi, How can I scroll to a UITableView footer all the time, while adding cells to table view content. Is there some way similar to scrollToRowAtIndexPath: , to scroll directly into my bottom footer view after adding new cells ? Thank you and Kind Regards, Tharindu Madushanak