Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c84171e937
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 50 lines (39 sloc) 1.643 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
//
// ITSidebarController.h
// iTransmission
//
// Created by Mike Chen on 10/21/11.
// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#define kITSidebarSlidingAnimationDuration 0.2f

@class ITSidebar;
@class ITSidebarContainerView;

typedef enum _ITSidebarControllerState
{
    ITSidebarHidden = 1,
    ITSidebarShown = 2,
    ITSidebarSlidingRight = 3,
    ITSidebarSlidingLeft = 4,
} ITSidebarControllerState;

@interface ITSidebarController : UIViewController <UITableViewDataSource, UITableViewDelegate>

@property (nonatomic, readonly) ITSidebarControllerState state;
@property (strong, nonatomic, readonly) ITSidebar *sidebar;
@property (strong, nonatomic) NSArray *viewControllers;
@property (strong, nonatomic) NSArray *sidebarItems;
@property (strong, nonatomic) UIViewController *currentViewController;
@property (strong, nonatomic, readonly) ITSidebarContainerView *containerView;
@property (strong, nonatomic) UISwipeGestureRecognizer *swipeLeftRecognizer;
@property (strong, nonatomic) UISwipeGestureRecognizer *swipeRightRecognizer;
@property (strong, nonatomic) UIGestureRecognizer *containerTouchRecognizer;
@property (nonatomic, assign) BOOL sidebarAlwaysShown;

- (void)fillContentView;
- (void)slideContainerViewToRightAnimated:(BOOL)animated;
- (void)slideContainerViewToLeftAnimated:(BOOL)animated;
- (void)toggleStateAnimated:(BOOL)animated;
- (void)_delayedViewTransition:(UIView*)oldView;

- (void)animationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context;

- (void)swipedLeft;
- (void)swipedRight;
- (void)containerViewTouched;

@end
Something went wrong with that request. Please try again.