afficher picto quand on selectionne dans un picker
hedi
Membre
Bonjour à tous
Voila je voudrai un peu d'aide svp
je voudrais à partir d'une selection dans un pickerView afficher l'ensemble d'annotation relative à l'item choisit.
c'est a dire : je suis sur une carte, g un pickerView que je fais afficher, je me positionne sur un item et des que je clique sur enregistrer l'ensemble d'annotation (dont les coordonnée sont tirés d'un fichier jason à distance que je parse correctement) sont affichée.
Voici ma méthode et je ne sias plus la suite
Merci beaucoup pour votre aide
- (void)acoRace:(ACORace *)raceObject didLoadPointsOfInterest:(NSDictionary *)poisDict
{
DLog(@POIS : %@", poisDict);
NSMutableArray *poisTypePicker = [[NSMutableArray alloc] initWithCapacity:0];
for (NSString *poisTypeNumber in [poisDict allKeys])
{
NSArray *poisTypeList = (NSArray *)[poisDict objectForKey:poisTypeNumber];
if ([poisTypeList count] == 0)
{
continue;
}
NSString *test = [poisTypeStrings objectForKey:poisTypeNumber];
DLog(@test = %@", test);
}
[poisTypePicker release];
if (pickerController == nil)
{
pickerController = [[ACOPickerViewController alloc] init];
pickerController.delegate = self;
[pickerController clearAllItems];
for(NSString *poisTypeNumber in [poisDict allKeys])
{
[pickerController addItemWithText:[NSString stringWithFormat:@%@",[poisTypeStrings objectForKey:poisTypeNumber]] andValue:@""];
DLog (@test : %@", poisTypeNumber);
}
}
//et c'est dans la suite que je me perd
/*NSMutableArray *poistypePicker = [[NSMutableArray alloc] initWithCapacity:0];
for (NSString *poisTypeNumber in [poisDict allKeys])
{
NSArray *poisTypeList = (NSArray *)[poisDict objectForKey:poisTypeNumber];
for (NSDictionary *itempoi in poisTypeList)
{
NSMutableArray *annotations = [[NSMutableArray alloc] initWithCapacity:0];
}*/
//}
}
Voila je voudrai un peu d'aide svp
je voudrais à partir d'une selection dans un pickerView afficher l'ensemble d'annotation relative à l'item choisit.
c'est a dire : je suis sur une carte, g un pickerView que je fais afficher, je me positionne sur un item et des que je clique sur enregistrer l'ensemble d'annotation (dont les coordonnée sont tirés d'un fichier jason à distance que je parse correctement) sont affichée.
Voici ma méthode et je ne sias plus la suite
Merci beaucoup pour votre aide
- (void)acoRace:(ACORace *)raceObject didLoadPointsOfInterest:(NSDictionary *)poisDict
{
DLog(@POIS : %@", poisDict);
NSMutableArray *poisTypePicker = [[NSMutableArray alloc] initWithCapacity:0];
for (NSString *poisTypeNumber in [poisDict allKeys])
{
NSArray *poisTypeList = (NSArray *)[poisDict objectForKey:poisTypeNumber];
if ([poisTypeList count] == 0)
{
continue;
}
NSString *test = [poisTypeStrings objectForKey:poisTypeNumber];
DLog(@test = %@", test);
}
[poisTypePicker release];
if (pickerController == nil)
{
pickerController = [[ACOPickerViewController alloc] init];
pickerController.delegate = self;
[pickerController clearAllItems];
for(NSString *poisTypeNumber in [poisDict allKeys])
{
[pickerController addItemWithText:[NSString stringWithFormat:@%@",[poisTypeStrings objectForKey:poisTypeNumber]] andValue:@""];
DLog (@test : %@", poisTypeNumber);
}
}
//et c'est dans la suite que je me perd
/*NSMutableArray *poistypePicker = [[NSMutableArray alloc] initWithCapacity:0];
for (NSString *poisTypeNumber in [poisDict allKeys])
{
NSArray *poisTypeList = (NSArray *)[poisDict objectForKey:poisTypeNumber];
for (NSDictionary *itempoi in poisTypeList)
{
NSMutableArray *annotations = [[NSMutableArray alloc] initWithCapacity:0];
}*/
//}
}
Connectez-vous ou Inscrivez-vous pour répondre.