• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [iPhone] How to scroll to UITableView footer view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: [iPhone] How to scroll to UITableView footer view
  • From: Scott Anguish <email@hidden>
  • Date: Mon, 3 May 2010 02:30:55 -0400

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...
>
> CGRect footerBounds = [footerView bounds];
> CGRect footerRectInTable = [tableView convertRect:footerBounds fromView:footerView];
>
> [tableView scrollToRect:footerRectInTable animated:YES];
>
> This should scroll to the footer view since you are basing it on the footer view's current bounds after you call endUpdate. If all is added and adjusted.
>
> Scott
>
> On May 1, 2010, at 8:13 PM, Tharindu Madushanka wrote:
>
>> 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:[NSArray arrayWithObject:[NSIndexPath
>> indexPathForRow:(chatMessages.count - 1) inSection:0]]
>> withRowAnimation:UITableViewRowAnimationLeft];
>> [tableview endUpdates];
>>
>> if (tableview.tableFooterView)
>>       [tableview scrollRectToVisible:CGRectMake(0,
>> tableview.contentSize.height+64, 320, 44) animated:YES];
>>
>>
>> Tharindu Madushanka
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Please do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >[iPhone] How to scroll to UITableView footer view (From: Tharindu Madushanka <email@hidden>)
 >Re: [iPhone] How to scroll to UITableView footer view (From: Fritz Anderson <email@hidden>)
 >Re: [iPhone] How to scroll to UITableView footer view (From: Tharindu Madushanka <email@hidden>)
 >Re: [iPhone] How to scroll to UITableView footer view (From: Scott Andrew <email@hidden>)

  • Prev by Date: Re: [modeator] Re: #macdev/#iphonedev ban, in need of sympathy
  • Next by Date: Re: [iPhone] How to scroll to UITableView footer view
  • Previous by thread: Re: [iPhone] How to scroll to UITableView footer view
  • Next by thread: Value Bindings in IB - Where's the documentation?
  • Index(es):
    • Date
    • Thread