All I want is to display some simple text in my viewController and have the hyperlinks autoparsed. When the user clicks on the link I want the control to somehow do a callback where I can do something with the URL. How can I achieve this?
I’ve already looked through the TTCatalog for hours. I have also tried looking into the source code of three20 as well as looking at the stack trace. No help. I just can’t figure out how my app can react to the click of the URL. Any hints please?
Hard to help without seeing what you’ve already tried, but you should be able to do something like the following:
You can then use
TTNavigatorandTTURLMapto mapcustom-uri://some/urlto a particular controller in your application, or handle it yourself in your application delegate. The best place to find out how to do that is by looking at theTTNavigatorDemosample application included in the Three20 source. Specifically, look at AppDelegate.m which is where all the URL mapping gets performed.