Latest0.9.3
Homepagehttps://github.com/SnowdogApps/SDForms
LicenseMIT
Platformsios 7.1, requires ARC
Authors

SDForms is an open source iOS forms library that allows to create dynamic UITableView-based forms. It offers different types of fields like text fields, picker fields, date picker fields, switch fields, slider fields etc. It also enables to automatically map fields’ values to object properties.

Installation:

  1. Drag and drop SDForms.xcodeproj to your project/workspace
  2. Add Appriopriate path in Header Search Paths option in Build Settings of your project
  3. In Other Linker Flags add "-all_load -ObjC"
  4. In Target Dependencies of Build Phases tab add SDForms
  5. In Link Binary With Libraries add libSDForms.a
  6. In Copy Bundle Resources add SDFormsResourcesBundle.bundle

CocoaPods

pod 'SDForms', :git => 'https://github.com/SnowdogApps/SDForms.git'

Usage

This is only simple example. For more advanced usage please check the sample project.

Initializing a form:

self.form = [[SDForm alloc] initWithTableView:self.tableView];
self.form.delegate = self;
self.form.dataSource = self;

Creating a field:

SDTextFormField *name = [[SDTextFormField alloc] initWithObject:self.person relatedPropertyKey:@"name"];
name.title = @"Name";
name.placeholder = @"Name";
name.cellType = SDTextFormFieldCellTypeTextAndLabel;

Implementing data source methods;

- (NSInteger)numberOfSectionsForForm:(SDForm *)form
{
return self.sections.count;
}

- (NSInteger)form:(SDForm *)form numberOfFieldsInSection:(NSInteger)section
{
NSMutableArray *fields = [self.sections objectAtIndex:section];
return fields.count;
}

- (SDFormField *)form:(SDForm *)form fieldForRow:(NSInteger)row inSection:(NSInteger)section
{
NSArray *fields = [self.sections objectAtIndex:section];
return [fields objectAtIndex:row];
}

Screenshots:

Screenshot1

Screenshot2

Latest podspec

{
    "name": "SDForms",
    "version": "0.9.3",
    "summary": "iOS",
    "description": "                   SDForms is an Objective-C library for creating UITableView-based forms.n",
    "homepage": "https://github.com/SnowdogApps/SDForms",
    "social_media_url": "https://twitter.com/SnowdogApps",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Rafau0142u00a0Kwiatkowski": "[email protected]"
    },
    "platforms": {
        "ios": "7.1"
    },
    "source": {
        "git": "https://github.com/SnowdogApps/SDForms.git",
        "tag": "0.9.3"
    },
    "source_files": "SDForms/**/*.{h,m}",
    "resource_bundles": {
        "SDFormsResources": [
            "SDForms/**/*.xib"
        ]
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This