Hi guys,
I'm working on handling the click of a customized URL in TTStyledTextLabel.
When I set the text to <a href="appname://user/name">name</a>
,
TTStyledTextLabel can parse it correctly as a URL
But when I try to map this URL to a Viewcontroller, I just can't get
the parameter (the 'name')
This is what the code looks like: [map from:@"appname://user/
(initWithName:)" toViewController:[UserInfo class]];
If I change the URL to
<a href="appname://user">name</a>
, and map it
without parameter like: [map from:@"appname://user" toViewController:
[UserInfo class]];
I can navigate to the UserInfo class...
Does anyone have this experience before? thanks for the help guys :)
**Edit I actually found it's due to there are unicode in the URL.... seems I need to find a workaround...