BZPasscodeViewController icon indicating copy to clipboard operation
BZPasscodeViewController copied to clipboard

UIPopoverController not presenting in iPad iOS 8

Open max32002 opened this issue 11 years ago • 0 comments

  1. Change UIWindow to UIView in code: https://github.com/baztokyo/BZPasscodeViewController/blob/master/BZ/UIPopoverController%2BBZExtensions.m

  2. Change the inView parameter in

[testPopoverController presentPopoverFromRect:rect inView:[UIApplication sharedApplication].keyWindow permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES]; to

[testPopoverController presentPopoverFromRect:rect inView:"your current View Controller's view" permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES]; And make sure it is in dispatch block

dispatch_async(dispatch_get_main_queue(), ^{ });

Also kip changing your rect origin n size values if it is within the bounds

max32002 avatar Jan 26 '15 09:01 max32002