views:

76

answers:

1

hey. When I am clicking URL link on TTStyleTextLabel, it doesn't push a new page. But when I looked at the TTCatalog, they don't have any method in the styledtexttestcontroller which seem to open up the webpage. So how does TTCatalog do that? How can I do that?

+1  A: 

Make sure that you have the TTNavigator to map from url to TTWebController. In the sample TTCatalog app you have:

[map from:@"*" toViewController:[TTWebController class]];

This will let the http:// be mapped to TTWebController in case it does not have any other mapped view controller.

sfa
yup this was the problem! thx!~!
David Gao