nicolaschengdev / WYPopoverController

WYPopoverController is for the presentation of content in popover on iPhone / iPad devices. Very customizable.
Other
1.94k stars 370 forks source link

It will disappear immediate #178

Closed daizim closed 8 years ago

daizim commented 8 years ago

It will disappear immediate unless set in globe variable.

- (IBAction)buttonClick:(UIButton *)sender {
xxViewController  *popViewController = [[xxViewController alloc]init];

    WYPopoverController *popoverController = [[WYPopoverController  alloc]initWithContentViewController:popViewController];
    [popoverController presentPopoverFromRect:xxx
                                       inView:xxxx
                     permittedArrowDirections:WYPopoverArrowDirectionDown
                                     animated:YES];

}