Hi All,
I have a UIScrollView that contains a series of UIView in its content view. The scrollview builds as desired and scrolls well with its content size set as needed. I cannot use PagingEnabled==YES due to design restrictions. At any given time the scrollview shows five UIView. When user scrolls enough [== scrollview's bounds] then another 5 UIView appears.
My problem is that I need to place the third UIView [in the currently visible 5 UIView] in the centre of the scrollView so that 2 UIView appears on its left and 2 on its right.
Though I have frame of 3rd UIView and when I pass it to
method, that UIView becomes visible but not exactly in the centre.
How can I make it to appear in the centre?
Thanks
Arnieterm
I have a UIScrollView that contains a series of UIView in its content view. The scrollview builds as desired and scrolls well with its content size set as needed. I cannot use PagingEnabled==YES due to design restrictions. At any given time the scrollview shows five UIView. When user scrolls enough [== scrollview's bounds] then another 5 UIView appears.
My problem is that I need to place the third UIView [in the currently visible 5 UIView] in the centre of the scrollView so that 2 UIView appears on its left and 2 on its right.
Though I have frame of 3rd UIView and when I pass it to
Code:
scrollRectToVisible
How can I make it to appear in the centre?
Thanks
Arnieterm