Category: cocoa-touch

How to reference HTML anchor?

I’m loading a string of HTML into a UIWebView through loadHTMLString. It produces a very long webpage. Once that string is loaded, I need to navigate to an HTML anchor tag with its “name” attribute set. In the HTML, I might have: //3 pages of text here <a name=”go here”></a> lots more text here //another […]

What does it mean to use setDelegate: on a UIViewController?

I recently saw some code in a UIApplicationDelegate class that looks like the following: [rootViewController setDelegate:self]; What exactly does it mean to set the delegate for a UIViewController here? What type of events will the delegate property trigger off on?