parameters - Passing url to Three20 TTURLMap -



parameters - Passing url to Three20 TTURLMap -

i trying pass in url parameter tturlmap this:

[map from@"tt://person/(initwithurl:)" toviewcontroller: [personviewcontroller class]];

i have ttstyledtableitemcell links render this:

<a href="tt://person/http://persons.url.com/blah">person name</a>

but when click on these links link doesn't phone call initwithurl: method in personviewconroller class. i've verified things wired correctly passing in simple string. believe isn't working because parser thinks url part of tturlmap url mapping. there way escape person's feed url (its rest service need utilize pull info in)?

many in advance.

i think character tturlmap trips on / character, next did trick me. phone call these mike suggests on way in , out of init function

+ (nsstring *)encodetturl:(nsstring *)str { nsmutablestring *temp = [nsmutablestring stringwithstring:str]; [temp replaceoccurrencesofstring:@"/" withstring:@"__" options:nsliteralsearch range:nsmakerange(0, [temp length])]; homecoming [nsstring stringwithstring:temp]; } + (nsstring *)decodetturl:(nsstring *)str { nsmutablestring *temp = [nsmutablestring stringwithstring:str]; [temp replaceoccurrencesofstring:@"__" withstring:@"/" options:nsliteralsearch range:nsmakerange(0, [temp length])]; homecoming [nsstring stringwithstring:temp]; }

url parameters map three20

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -