In my application ,i having 4 UIbuttons .On click each button showing subview view contains learn and play option.While clicking , want to show the different view depends on the uibutton selection.Here my code . please help me to perform diffrent view on click option.
-(IBAction)animals
{
//UIAlertView *alert4=[[UIAlertView alloc]initWithTitle:@"" message:@"" delegate:self cancelButtonTitle:nil otherButtonTitles:@"LEARN",@"PLAY",@"CANCEL",nil];
//alert4.tag = 4;
//[alert4 show];///when it was in uialert view
CGPoint point = [tap locationInView:self.birdsbut];
pv = [PopoverView showPopoverAtPoint:point inView:movingview withContentView:alertvu delegate:self];
}
-(IBAction)birds
{
CGPoint point = [tap locationInView:self.birdsbut];
pv = [PopoverView showPopoverAtPoint:point inView:movingview withContentView:alertvu delegate:self];
}
-(IBAction)direct
{
CGPoint point = [tap locationInView:self.birdsbut];
pv = [PopoverView showPopoverAtPoint:point inView:movingview withContentView:alertvu delegate:self];
}
-(IBAction)fruit
{
CGPoint point = [tap locationInView:self.birdsbut];
pv = [PopoverView showPopoverAtPoint:point inView:movingview withContentView:alertvu delegate:self];
}
What should i add ,to perform multi view option in same click?
set the tag(unique) for all the buttons and then bind them to a same event(IBAction) in touchUpInside.
In the below case bind all of them to the event animals: