Skip to content

Problem with popup #3

Description

@neruja

I changed the code in District.m file.

  • (District *)demoAnnotationFactory {
    Representative *dudeOne = [Representative representativeWithName:@"Rep. Dude" party:@"Republican" image:[UIImage imageNamed:@"redstar"] representativeID:@"TXL1"];
    Representative *dudeTwo = [Representative representativeWithName:@"Rep. Guy" party:@"Democrat" image:[UIImage imageNamed:@"bluestar"] representativeID:@"TXL2"];
    Representative *dudeT = [Representative representativeWithName:@"Test" party:@"Democrat" image:[UIImage imageNamed:@"bluestar"] representativeID:@"TXL2"];
    return [District districtWithCoordinate:CLLocationCoordinate2DMake(30.274722, -97.740556) title:@"Austin Representatives" representatives:[NSArray arrayWithObjects:dudeOne, dudeTwo, dudeT, nil]];
    }

  • (District *)demoAnnotationFactory1 {

    Representative *lol = [Representative representativeWithName:@"Rep. Dude" party:@"Republican" image:[UIImage imageNamed:@"redstar"] representativeID:@"TXL1"];
    Representative *tdo = [Representative representativeWithName:@"Test" party:@"Democrat" image:[UIImage imageNamed:@"bluestar"] representativeID:@"TXL2"];
    return [District districtWithCoordinate:CLLocationCoordinate2DMake(20.274722, -97.740560) title:@"Test Representatives" representatives:[NSArray arrayWithObjects:lol, tdo, nil]];
    }

when I am testing the popup. I have found a error. As you see, I have clicked this (demoAnnotationFactory) so there are 3 datas can I Find. when I clicked this (demoAnnotationFactory1) Can i find also 3 datas. but there are 2 datas as usually. The last one shouldn't have come in the factory1. that one is own to demoAnnotationFactory.

I will hope you could correct this. You can change this according to delete the old datas. when we clicked the popups we need to have new datas.

otherwise i truly to say this as a wonderful tutorial.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions