Skip to content

Latest commit

 

History

History
executable file
·
28 lines (23 loc) · 850 Bytes

File metadata and controls

executable file
·
28 lines (23 loc) · 850 Bytes

DynamicFormFactory

DynamicFormFactory with a single API which takes the below form specification json as input, and launches a new UI element on top of the current one.

How do I get set up?

  • Simple implementation
  • Add DynamicFormFactory directory's file to project
  • Add header include in UIViewConroller
#import "DynamicFormFactory.h"
  • Add protocol delegate to controller interface
  • Add code to UIViewController viewDidLoad method:
NSString *jsonStr = @"<DynamicFormFactory formatted json string>";
[[[DynamicFormFactory alloc] init] showDynamicForm:jsonStr showInView:self withDelegate:self];
  • Add method to submitted data in json string format:
-(void) submittedData:(NSString *)jsonString{
    NSLog(@"%@", jsonString);
}
  • That's it.

Thanks,