Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4d4e293a41
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (46 sloc) 1.824 kb
//
// FPPopoverController.h
//
// Created by Alvise Susmel on 1/5/12.
// Copyright (c) 2012 Fifty Pixels Ltd. All rights reserved.
//
// https://github.com/50pixels/FPPopover
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "FPPopoverView.h"
#import "FPTouchView.h"
@class FPPopoverController;
@protocol FPPopoverControllerDelegate <NSObject>
@optional
- (void)popoverControllerDidDismissPopover:(FPPopoverController *)popoverController;
- (void)presentedNewPopoverController:(FPPopoverController *)newPopoverController
shouldDismissVisiblePopover:(FPPopoverController*)visiblePopoverController;
@end
@interface FPPopoverController : UIViewController
{
FPTouchView *_touchView;
FPPopoverView *_contentView;
UIViewController *_viewController;
UIWindow *_window;
UIView *_parentView;
UIView *_fromView;
UIDeviceOrientation _deviceOrientation;
}
@property(nonatomic,assign) id<FPPopoverControllerDelegate> delegate;
/** @brief FPPopoverArrowDirectionAny, FPPopoverArrowDirectionVertical or FPPopoverArrowDirectionHorizontal for automatic arrow direction.
**/
@property(nonatomic,assign) FPPopoverArrowDirection arrowDirection;
@property(nonatomic,assign) CGSize contentSize;
@property(nonatomic,assign) CGPoint origin;
/** @brief The tint of the popover. **/
@property(nonatomic,assign) FPPopoverTint tint;
/** @brief Initialize the popover with the content view controller
**/
-(id)initWithViewController:(UIViewController*)viewController;
/** @brief Presenting the popover from a specified view **/
-(void)presentPopoverFromView:(UIView*)fromView;
/** @brief Presenting the popover from a specified point **/
-(void)presentPopoverFromPoint:(CGPoint)fromPoint;
/** @brief Dismiss the popover **/
-(void)dismissPopoverAnimated:(BOOL)animated;
@end
Jump to Line
Something went wrong with that request. Please try again.