Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.39 KB

README.md

File metadata and controls

36 lines (31 loc) · 1.39 KB

IFXRefresher

Injection for Xcode auto Refresher, accelerates iOS development. IFXRefresher help us develop iOS UI so much. It's a tiny library need to work together with Xcode plugin injectionforxcode. IFXRefresher auto refreshs running app's current viewcontroller, after we inject source from Xcode.

Requirements

Installation

pod 'IFXRefresher', '~>1.1.3'

Usage

First of all, you should install injectionforxcode Xcode plugin.

To start IFXRefresher

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [IFXRefresher startMonitor];
    //you code
}

Run you app, now you can use "ctrl+=" to refresh you viewcontroller. This refresher is now work for all viewcontroller without any start params. But sometime's we need controller with start params. There are two ways to let IFXRefresher
konw which params we need for current viewcontroller.

  • Add all controller start params with prefix 'with_'
  • Config manually
[IFXRefresher addViewControllerName:@"viewcontroller name" withParamNames:@[@"param1", @"param2", ...]];
//or
[IFXRefresher addViewController:vc withParamNames:@[@"param1", @"param2", ...]];
//or
[IFXRefresher addViewControllerClass:vcClass withParamNames:@[@"param1", @"param2", ...]];