iphone - UIPopoverController presented from a UIButton does not hide? -


i have uipopovercontroller presented button on uiviewcontroller when tap on part of view not popover not hiding?

the buttons present popover created dynamically, you'll see referenced in code below:

-(ibaction)showmodifiers:(id)sender{      [self.popovercontroller dismisspopoveranimated:yes];      uiview *thesuperview = self.view;      cgpoint touchpointinsuperview = [sender locationinview:thesuperview];     uiview *touchedview = [thesuperview hittest:touchpointinsuperview withevent:nil];      currentpopovertag = [touchedview tag];     nslog(@"show modifiers %i %i", [touchedview tag], currentpopovertag);      repziocoredataappdelegate *appdelegate  = [[uiapplication sharedapplication] delegate];     if (appdelegate.popovercontroller)         [appdelegate.popovercontroller dismisspopoveranimated:yes];      self.modifierlistpopoverviewcontroller = nil;        modifierlistcollection *collection = [self.modifierlists objectatindex:[touchedview tag]-100];     modifierlist *modifierlist = [self getmodifierlist:collection.modifierlistid];     self.modifierlistpopoverviewcontroller =     [[[modifierlistpopoverviewcontroller alloc] initwithmodifierlist:modifierlist withmanufacturerid: self.manufacturerid] autorelease];     self.modifierlistpopoverviewcontroller.delegate = self;      self.popovercontroller = [[[uipopovercontroller alloc] initwithcontentviewcontroller:modifierlistpopoverviewcontroller] autorelease];     [self.popovercontroller presentpopoverfrombarbuttonitem:sender  permittedarrowdirections:uipopoverarrowdirectionany animated:yes]; } 

i realize it's unlikely, modifierlistpopoverviewcontroller class set modalinpopover property yes? (the default no, should give behavior you're looking for).


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -