开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜