Multi-Parameter-Mapping mit Three20 und TTURLMap

Ich folgeDie Tutorial und deklarieren Sie die folgenden Zuordnungen in meinem App-Delegaten:

[map from:@"x://profile/(initWithId:)/(name:)" toViewController:[ProfileViewController class]];
[map from:@"*" toViewController:[TTWebController class]];

ImProfileViewController.m Ich implementiere das- (id)initWithId:(int)anIdentifier name:(NSString *)name Selektor, um eine solche Zuordnung zu behandeln. Ich nehme an, URLs wie @ zu öffnx://profile/1/John Doe würde @ aufruf[[ProfileViewController alloc] initWithId:1 name:@"John Doe"] Dies scheint jedoch nicht der Fall zu sein. Der StandardTTWebController class wird jedes Mal aufgerufen, wenn ich diese URL öffne.

Verwenden Sie einen einzelnen Parameter, z. B.x://profile/(initWithId:) macht das Richtige, nämlich @ aufruf[[ProfileViewController alloc] initWithId:1].

Habe ich hier etwas verpasst? Wie verwende ich Multi-Parameter-Mapping mit Three20 und TTURLMap?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage