Is there a way in xcode to focus my UIWebView to a specific square view of a website?.
So, I display a predefined part of a website to be shown in my view. Without making the user scrolling over to that part of the page.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you wanted to do this in Objective-C you could (on iOS 5 and above) access the
scrollViewproperty ofUIWebView, and zoom/move the page accordingly.However, it’s probably going to be a much better strategy to have the webpage itself do this -you can access the viewport through javascript and adjust its zoom accordingly, and scrolling to a specific part of a webpage through JS is trivial.