FWViewController

@protocol FWViewController <NSObject>

视图控制器挂钩协议,可覆写

  • 渲染初始化方法,init自动调用,默认未实现

    Declaration

    Objective-C

    - (void)renderInit;
  • 渲染视图方法,loadView自动调用,默认未实现

    Declaration

    Objective-C

    - (void)renderView;
  • 渲染布局方法,loadView自动调用,默认未实现

    Declaration

    Objective-C

    - (void)renderLayout;
  • 渲染导航栏方法,viewDidLoad自动调用,默认未实现

    Declaration

    Objective-C

    - (void)renderNavbar;
  • 渲染模型方法,viewDidLoad自动调用,默认未实现

    Declaration

    Objective-C

    - (void)renderModel;
  • 渲染数据模型,viewDidLoad自动调用,默认未实现

    Declaration

    Objective-C

    - (void)renderData;
  • 渲染页面状态,viewDidLoad自动调用,默认未实现。初始状态为ready,其它需手工触发

    Declaration

    Objective-C

    - (void)renderState:(FWViewControllerState)state withObject:(nullable id)object;