I have a strange problem when using the UIScrollView controller in conjunction with iPhone 4 and iOS 5.1.
I have a UIScrollView whose content size is 640x480 (dual screen efficiently), and in addition to the screen for switching between the two “screens”, I also allow the user to click on the screen, in response to which I call something like ...
[scrollView scrollRectToVisible:(CGRectMake 320,0,320,480) animated:YES]
the first 320 will be 0 if the tap occurred while the right side of the scroll view was displayed (note that paging is enabled in the scroll mode, so it can only go down completely or completely to the right).
I also have a situation where I sometimes show an additional view controller using modModalViewController, above this view controller containing a scroll.
Everything works fine until the modal view controller is presented and subsequently dismissed, after which the scrollRectToVisible method will no longer work if the animated value is set to YES (if I changed the animation to NO, then it works as expected). Note that the tap is still being registered and scrollRectToVisible is called, it just does nothing when the animated one is set to YES).
, iPhone 4 iOS 5.x.
( , ) :
iPhone 3G 4.x,
iPhone 3GS 3.x,
iPod touch (2- ) 4.x
, 5.x.
, , , , - iPhone 4 iOS 5.1.
- , ?