-
-
Save gliubc/a58a1dc846bd5a09878466345a552985 to your computer and use it in GitHub Desktop.
scrollRectToVisible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CGRect menuScrollViewRect = CGRectMake( | |
menuRect.origin.x - (tabMenuRect.size.width - menuRect.size.width) / 2, | |
menuRect.origin.y, | |
tabMenuRect.size.width, | |
tabMenuRect.size.height | |
); | |
[menuScrollView scrollRectToVisible:menuScrollViewRect animated:YES]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment