开发者

Clicking URL Link on TTStyledTextLabel doesn't push a new page

开发者 https://www.devze.com 2023-01-08 12:38 出处:网络
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

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 tha开发者_开发技巧t? How can I do that?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消