TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2015 |
Maintained by Daniel Thengvall.
ViewController.h view file
#import "DTFormViewController.h"
@interface ViewController : DTFormViewController
@end
ViewController.m view file
- (void)viewDidLoad {
[super viewDidLoad];
[super setFormObjects:@[
// Array of objects that extend DTBaseFormObject
]];
}
NOTE you dont have to execute setFormObjects in the viewDidLoad method, it can be called from anywhere.
ExampleTextInputFormObject.h view file
#import "DTBaseFormObject.h"
@interface ExampleTextInputFormObject : DTBaseFormObject
- (ExampleTextInputFormObject *)initWithPlaceholder:(NSString *)placeholderText onChanged:(void (^)(NSString *text))onChangedBehavior;
@end
ExampleTextInputFormObject.m view file
- (UICollectionViewCell *)toCollectionViewCell:(UICollectionView *)collectionView :(NSIndexPath *)indexPath {
UICollectionViewCell *exampleCell = [collectionView dequeueReusableCellWithReuseIdentifier:@"example" forIndexPath:indexPath];
// Customize cell
return exampleCell;
}
DTFormMenuController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'DTFormMenuController', '0.1.8'
You can easily update your project to use CocoaPods:
sudo gem install cocoapods
platform :ios, deployment_target: '8.0'
pod 'DTFormMenuController', '0.1.8'
pod install
DTHENG, [email protected]
DTFormMenuController is available under the MIT license. See the LICENSE file for more info.