2012-07-24 11:44:16 -07:00
|
|
|
//
|
|
|
|
// NBContainerViewController.h
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Roy Yang on 7/24/12.
|
|
|
|
// Copyright (c) 2012 NewsBlur. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
2015-10-01 21:15:56 -07:00
|
|
|
#import <SafariServices/SafariServices.h>
|
2012-07-24 11:44:16 -07:00
|
|
|
|
|
|
|
@class NewsBlurAppDelegate;
|
|
|
|
|
2013-12-11 18:06:22 -08:00
|
|
|
@interface NBContainerViewController : UIViewController
|
2015-11-28 22:07:38 -08:00
|
|
|
<UIPopoverControllerDelegate, UIPopoverPresentationControllerDelegate> {
|
2012-07-24 11:44:16 -07:00
|
|
|
NewsBlurAppDelegate *appDelegate;
|
2014-01-16 17:15:29 -08:00
|
|
|
|
|
|
|
BOOL interactiveOriginalTransition;
|
2012-07-24 11:44:16 -07:00
|
|
|
}
|
|
|
|
|
2012-07-26 18:07:29 -07:00
|
|
|
@property (readonly) BOOL storyTitlesOnLeft;
|
2014-01-16 17:15:29 -08:00
|
|
|
@property (readwrite) BOOL interactiveOriginalTransition;
|
2012-07-26 18:07:29 -07:00
|
|
|
@property (readonly) int storyTitlesYCoordinate;
|
2014-03-03 12:52:26 -08:00
|
|
|
@property (readwrite) BOOL originalViewIsVisible;
|
2013-12-11 18:06:22 -08:00
|
|
|
@property (nonatomic) CALayer *leftBorder;
|
2014-01-16 17:15:29 -08:00
|
|
|
@property (nonatomic) CALayer *rightBorder;
|
2012-07-24 11:44:16 -07:00
|
|
|
@property (atomic, strong) IBOutlet NewsBlurAppDelegate *appDelegate;
|
|
|
|
|
2012-07-24 15:29:01 -07:00
|
|
|
|
2012-07-28 11:49:31 -07:00
|
|
|
- (void)syncNextPreviousButtons;
|
|
|
|
|
2014-02-21 16:06:49 -08:00
|
|
|
- (void)layoutDashboardScreen;
|
|
|
|
- (void)layoutFeedDetailScreen;
|
2012-07-25 17:29:29 -07:00
|
|
|
- (void)adjustFeedDetailScreenForStoryTitles;
|
2012-07-24 15:29:01 -07:00
|
|
|
|
2012-07-24 11:44:16 -07:00
|
|
|
- (void)transitionToFeedDetail;
|
2013-12-10 18:14:32 -08:00
|
|
|
- (void)transitionToFeedDetail:(BOOL)resetLayout;
|
2014-01-07 18:26:17 -08:00
|
|
|
- (void)transitionToOriginalView;
|
2014-01-17 16:23:12 -08:00
|
|
|
- (void)transitionToOriginalView:(BOOL)resetLayout;
|
2014-01-07 18:26:17 -08:00
|
|
|
- (void)transitionFromOriginalView;
|
2014-02-03 14:17:03 -08:00
|
|
|
- (void)interactiveTransitionFromOriginalView:(CGFloat)percentage;
|
2013-12-10 18:14:32 -08:00
|
|
|
- (void)interactiveTransitionFromFeedDetail:(CGFloat)percentage;
|
2012-07-24 15:29:01 -07:00
|
|
|
- (void)transitionFromFeedDetail;
|
2013-12-10 18:14:32 -08:00
|
|
|
- (void)transitionFromFeedDetail:(BOOL)resetLayout;
|
2012-07-25 20:38:44 -07:00
|
|
|
- (void)transitionToShareView;
|
|
|
|
- (void)transitionFromShareView;
|
2012-07-25 10:50:52 -07:00
|
|
|
|
|
|
|
- (void)dragStoryToolbar:(int)yCoordinate;
|
2012-07-25 17:29:29 -07:00
|
|
|
- (void)showUserProfilePopover:(id)sender;
|
2012-07-31 13:10:26 -07:00
|
|
|
- (void)showFeedMenuPopover:(id)sender;
|
2012-10-12 13:58:26 -04:00
|
|
|
- (void)showFeedDetailMenuPopover:(id)sender;
|
2012-08-02 18:00:48 -07:00
|
|
|
- (void)showFontSettingsPopover:(id)sender;
|
2012-12-27 19:34:05 -08:00
|
|
|
- (void)showTrainingPopover:(id)sender;
|
2014-11-10 16:00:59 -08:00
|
|
|
- (void)showUserTagsPopover:(id)sender;
|
2013-09-07 02:35:47 -05:00
|
|
|
- (void)showSendToPopover:(id)sender;
|
2012-08-15 17:08:33 -07:00
|
|
|
- (void)showSitePopover:(id)sender;
|
2012-07-31 13:10:26 -07:00
|
|
|
- (void)hidePopover;
|
2012-07-24 11:44:16 -07:00
|
|
|
@end
|