text: //
  //  TSViewController.h
  //  TSFrame
  //
  //  Created by chenyusen on 16/3/30.
  //  Copyright © 2016年 techsen. All rights reserved.
  //
  
  #import <UIKit/UIKit.h>
  
  
  @interface TSViewController : UIViewController {
      BOOL _isViewAppearing;
      BOOL _hasViewAppeared;
      BOOL _autoresizesForKeyboard;
  }
  
  
  
  
  /**
   * The view has appeared at least once and hasn't been removed due to a memory warning.
   */
  @property (nonatomic, readonly) BOOL hasViewAppeared;
  
  /**
   * The view is about to appear and has not appeared yet.
   */
  @property (nonatomic, readonly) BOOL isViewAppearing;
  
  /**
   * Determines if the view will be resized automatically to fit the keyboard.
   */
  @property (nonatomic) BOOL autoresizesForKeyboard;
  
  
  - (instancetype)initWithDictionary:(NSDictionary *)dictionary;
  
  
  
  - (void)ts_pushViewController:(UIViewController *)viewController animated:(BOOL)animated;
  
  - (void)ts_presentViewController:(UIViewController *)viewController animated:(BOOL)animated;
  
  - (void)ts_popViewControllerAnimated:(BOOL)animated;
  
  
  #pragma mark -
  #pragma mark - Overwrite
  /**
   * Sent to the controller before the keyboard slides in.
   */
  - (void)keyboardWillAppear:(BOOL)animated withBounds:(CGRect)bounds;
  
  /**
   * Sent to the controller before the keyboard slides out.
   */
  - (void)keyboardWillDisappear:(BOOL)animated withBounds:(CGRect)bounds;
  
  /**
   * Sent to the controller after the keyboard has slid in.
   */
  - (void)keyboardDidAppear:(BOOL)animated withBounds:(CGRect)bounds;
  
  /**
   * Sent to the controller after the keyboard has slid out.
   */
  - (void)keyboardDidDisappear:(BOOL)animated withBounds:(CGRect)bounds;
  
  
  
  @end
  