Skip to content

Instantly share code, notes, and snippets.

@alvises
Created December 17, 2014 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alvises/701bbe04e40f85e45ae9 to your computer and use it in GitHub Desktop.
Save alvises/701bbe04e40f85e45ae9 to your computer and use it in GitHub Desktop.
#import "PopOverTestowyViewController.h"
#import "FPPopoverController.h"
-(IBAction)otwieramPopover:(id)sender{
//SAFE_ARC_RELEASE(popover); popover=nil;
//You have set "testController" as the identifier of your PopOverTestowyViewController in storyboard
PopOverTestowyViewController *mojController=[self.storyboard instantiateViewControllerWithIdentifier:@"testController"];
//mojController.delegate = self;
FPPopoverController *popover=[[FPPopoverController alloc]initWithViewController:mojController];
popover.border = NO;
popover.tint = FPPopoverWhiteTint;
[popover presentPopoverFromView:sender];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment