How go to top of UIView on UIScrollView?

ScrollRectToVisible is also available for UIScrollView.

Up vote 0 down vote favorite share g+ share fb share tw.

I put UIScrollView on View. UIScrollView includes a UIView Customed. When I click a button, I hope to see UIView's top point.

When I used UITableView, my using code is like this : self. TableListView scrollRectToVisible:CGRectMake(0, 0, 1, 1) animated:YES; But, this code is able to work UIView on UIScrollView. Self.

ScrollView setContentOffset:CGPointMake(0, 0 ); This code is found through web searching. But, this code doesn't work. In other words, I want to see top of UIView on UIScrollview not top of UIScrollView.

Thanks! ~~~ ios ipad uiview uiscrollview link|improve this question edited Nov 28 '11 at 11:53 asked Nov 28 '11 at 11:39hyekyung976 58% accept rate.

ScrollRectToVisible is a UIScrollView method. You can use it. – beryllium Nov 28 '11 at 11:46 @beryllium Thanks!

But, I did known that ScrollRectToVisible is a UIScrollView method. What I want is to see top of UIView on scrollView not top of scrollView. – hyekyung Nov 28 '11 at 11:51.

ScrollRectToVisible is also available for UIScrollView Get the frame of the UIView and and use it as a parameter EDIT: Could try: self. ScrollView scrollRectToVisible:myView. Frame animated:YES.

Thanks! And Could you give me a simple code? – hyekyung Nov 28 '11 at 12:18 Thanks!

:) You're right! ~ but, I think that my problem is because of other one. Re-Thanks!

– hyekyung Nov 29 '11 at 0:56.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions