One Logo Pool Ball
UIKit · IOS API REFERENCE

UIPopoverController

class · iOS 3.2+ · Deprecated in iOS 9.0 · SDK 27.1

@MainActor class UIPopoverController

Members (22)

method · iOS 3.2+ · Deprecated in iOS 9.0

dismiss

TypeScript
dismiss(animated: boolean): Promise<void>
Swift declaration
func dismiss(animated: Bool)
init · iOS 3.2+ · Deprecated in iOS 9.0

init

TypeScript
static init(viewController: UIViewController): Promise<UIPopoverController>
Swift declaration
init(contentViewController viewController: UIViewController)
method · iOS 3.2+ · Deprecated in iOS 9.0

present

TypeScript
presentFromPermittedArrowDirectionsAnimated(item: UIBarButtonItem, arrowDirections: UIPopoverArrowDirection, animated: boolean): Promise<void>
Swift declaration
func present(from item: UIBarButtonItem, permittedArrowDirections arrowDirections: UIPopoverArrowDirection, animated: Bool)
method · iOS 3.2+ · Deprecated in iOS 9.0

present

TypeScript
presentFromInPermittedArrowDirectionsAnimated(rect: { x: number; y: number; width: number; height: number }, view: UIView, arrowDirections: UIPopoverArrowDirection, animated: boolean): Promise<void>
Swift declaration
func present(from rect: CGRect, in view: UIView, permittedArrowDirections arrowDirections: UIPopoverArrowDirection, animated: Bool)
method · iOS 3.2+ · Deprecated in iOS 9.0

setContentView

TypeScript
setContentView(viewController: UIViewController, animated: boolean): Promise<void>
Swift declaration
func setContentView(_ viewController: UIViewController, animated: Bool)
method · iOS 3.2+ · Deprecated in iOS 9.0

setContentSize

TypeScript
setContentSize(size: { width: number; height: number }, animated: boolean): Promise<void>
Swift declaration
func setContentSize(_ size: CGSize, animated: Bool)
get · iOS 7.0+ · Deprecated in iOS 9.0

backgroundColor

TypeScript
get backgroundColor(): Promise<(UIColor) | null>
Swift declaration
@NSCopying var backgroundColor: UIColor? { get set }
set · iOS 7.0+ · Deprecated in iOS 9.0

backgroundColor

TypeScript
setBackgroundColor(value?: (UIColor) | null): Promise<void>
Swift declaration
@NSCopying var backgroundColor: UIColor? { get set }
get · iOS 3.2+ · Deprecated in iOS 9.0

contentViewController

TypeScript
get contentViewController(): Promise<UIViewController>
Swift declaration
var contentViewController: UIViewController { get set }
set · iOS 3.2+ · Deprecated in iOS 9.0

contentViewController

TypeScript
setContentViewController(value: UIViewController): Promise<void>
Swift declaration
var contentViewController: UIViewController { get set }
get · iOS 3.2+ · Deprecated in iOS 9.0

delegate

TypeScript
get delegate(): Promise<(SDKHandle) | null>
Swift declaration
weak var delegate: (any UIPopoverControllerDelegate)? { get set }
set · iOS 3.2+ · Deprecated in iOS 9.0

delegate

TypeScript
setDelegate(value?: (Implements<UIPopoverControllerDelegate> | SDKHandle) | null): Promise<void>
Swift declaration
weak var delegate: (any UIPopoverControllerDelegate)? { get set }
get · iOS 3.2+ · Deprecated in iOS 9.0

passthroughViews

TypeScript
get passthroughViews(): Promise<(Array<UIView>) | null>
Swift declaration
var passthroughViews: [UIView]? { get set }
set · iOS 3.2+ · Deprecated in iOS 9.0

passthroughViews

TypeScript
setPassthroughViews(value?: (Array<UIView>) | null): Promise<void>
Swift declaration
var passthroughViews: [UIView]? { get set }
get · iOS 3.2+ · Deprecated in iOS 9.0

arrowDirection

TypeScript
get arrowDirection(): Promise<UIPopoverArrowDirection>
Swift declaration
var arrowDirection: UIPopoverArrowDirection { get }
get · iOS 5.0+ · Deprecated in iOS 9.0

backgroundViewClass

TypeScript
get backgroundViewClass(): Promise<(string) | null>
Swift declaration
var backgroundViewClass: AnyClass? { get set }
set · iOS 5.0+ · Deprecated in iOS 9.0

backgroundViewClass

TypeScript
setBackgroundViewClass(value?: (string) | null): Promise<void>
Swift declaration
var backgroundViewClass: AnyClass? { get set }
get · iOS 3.2+ · Deprecated in iOS 9.0

contentSize

TypeScript
get contentSize(): Promise<{ width: number; height: number }>
Swift declaration
var contentSize: CGSize { get set }
set · iOS 3.2+ · Deprecated in iOS 9.0

contentSize

TypeScript
setContentSize70875(value: { width: number; height: number }): Promise<void>
Swift declaration
var contentSize: CGSize { get set }
get · iOS 5.0+ · Deprecated in iOS 9.0

layoutMargins

TypeScript
get layoutMargins(): Promise<{ top: number; left: number; bottom: number; right: number }>
Swift declaration
var layoutMargins: UIEdgeInsets { get set }
set · iOS 5.0+ · Deprecated in iOS 9.0

layoutMargins

TypeScript
setLayoutMargins(value: { top: number; left: number; bottom: number; right: number }): Promise<void>
Swift declaration
var layoutMargins: UIEdgeInsets { get set }
get · iOS 3.2+ · Deprecated in iOS 9.0

isPopoverVisible

TypeScript
get isPopoverVisible(): Promise<boolean>
Swift declaration
var isPopoverVisible: Bool { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UIPopoverController.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All UIKit types →