Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. LTPopUpReward *test = [[LTPopUpReward alloc] init];
  2. UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:test];
  3. CGFloat fltHeight = [UIScreen mainScreen].bounds.size.height;
  4. CGFloat fltWidth = [UIScreen mainScreen].bounds.size.width;
  5. popover.popoverContentSize = CGSizeMake(fltWidth/2, fltHeight/2); //your custom size.
  6. CGRect rectPopUpReward = CGRectMake(500, 500, fltWidth/2, fltHeight/2);
  7. [popover presentPopoverFromRect:rectPopUpReward inView:self.view permittedArrowDirections: UIPopoverArrowDirectionAny animated:YES];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement