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;
|
2015-12-15 12:37:18 -08:00
|
|
|
@property (nonatomic, readonly) UINavigationController *masterNavigationController;
|
2012-07-24 11:44:16 -07:00
|
|
|
|
2012-07-24 15:29:01 -07:00
|
|
|
|
2012-07-28 11:49:31 -07:00
|
|
|
- (void)syncNextPreviousButtons;
|
|
|
|
|
2015-12-07 16:09:49 -08:00
|
|
|
- (void)updateTheme;
|
|
|
|
|
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-12-27 19:34:05 -08:00
|
|
|
- (void)showTrainingPopover:(id)sender;
|
2016-11-23 08:09:19 -08:00
|
|
|
- (void)showNotificationsPopover:(id)sender;
|
2015-12-15 12:37:18 -08:00
|
|
|
|
2012-07-24 11:44:16 -07:00
|
|
|
@end
|