Sha256: 92ddd0f5aa1ca05a63212b4059a30ef81d8370cf59762d783a8b878924ad282c

Contents?: true

Size: 1.28 KB

Versions: 2

Compression:

Stored size: 1.28 KB

Contents

//
//  <%= @class_name %>Form.h
//  PureMVC_ObjectiveC
//
//  Created by <%= @developer.capitalize %> on <%= @created_on %>
//  Copyright(c) <%= Time.now.year %>, All rights reserved.
//

#import <UIKit/UIKit.h>
#import "<%= @class_name %>VO.h"

@protocol <%= @class_name %>FormViewControllerDelegate

-(void)create<%= @class_name %>Selected:(<%= @class_name %>VO *)<%= @project_name %>VO;
-(void)update<%= @class_name %>Selected:(<%= @class_name %>VO *)<%= @project_name %>VO;

@end

typedef enum {
	NEW, EDIT
} Mode;

@interface <%= @class_name %>Form : UITableViewController {
	<%= @class_name %>VO *<%= @project_name %>VO;
	UITextField *firstNameTextField, *lastNameTextField, *emailTextField, *<%= @project_name %>nameTextField, *passwordTextField, *confirmPasswordTextField;
	Mode mode;
	id<<%= @class_name %>FormViewControllerDelegate> delegate;
}

@property(nonatomic, retain) <%= @class_name %>VO *<%= @project_name %>VO;
@property(nonatomic, retain) UITextField *firstNameTextField, *lastNameTextField, *emailTextField, *<%= @project_name %>nameTextField, *passwordTextField, *confirmPasswordTextField;
@property Mode mode;
@property(nonatomic, retain) id<<%= @class_name %>FormViewControllerDelegate> delegate;

-(UITextField *)textFieldWithPlaceHolder:(NSString *)placeHolder frame:(CGRect)frame;

@end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
appjam-0.1.2 lib/appjam/generators/project/Classes/contacts/view/components/UserForm.h.tt
appjam-0.1.1 lib/appjam/generators/project/Classes/contacts/view/components/UserForm.h.tt