Sha256: fb105ec032994b3296574e5dff2c180ea72c96c94539114a1ac4a03c73046c6d

Contents?: true

Size: 1.29 KB

Versions: 28

Compression:

Stored size: 1.29 KB

Contents

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

#import "<%= @class_name %>.h"


@implementation <%= @class_name %>

@synthesize <%= @project_name %>List, <%= @project_name %>Form, navigation;

-(id)initWithFrame:(CGRect)frame {
	if (self = [super initWithFrame:frame]) {
		self.navigation = [[[UINavigationController alloc] init] autorelease];
		self.<%= @project_name %>List = [[[<%= @class_name %>List alloc] init] autorelease];
		self.<%= @project_name %>Form = [[[<%= @class_name %>Form alloc] init] autorelease];
		[navigation pushViewController:<%= @project_name %>List animated:NO];
		[self addSubview:navigation.view];
	}
	return self;
}

-(void)show<%= @class_name %>Form {
	[navigation pushViewController:<%= @project_name %>Form animated:YES];
}

-(void)show<%= @class_name %>List {
	[navigation popToRootViewControllerAnimated:YES];
}

-(void)showError:(NSString *)message {
	[[[[UIAlertView alloc] initWithTitle:@"Error:" message:message delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil] autorelease] show];
}

- (void)dealloc {
	self.navigation = nil;
	self.<%= @project_name %>List = nil;
	self.<%= @project_name %>Form = nil;
    [super dealloc];
}

@end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
appjam-0.1.8.11 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.10 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.9 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.8 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.7 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.6 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.5 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.4 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.3 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.2 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.1 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.pre13 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.pre12 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.pre11 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.pre10 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.pre9 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.pre7 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.pre6 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt
appjam-0.1.8.pre5 lib/appjam/generators/project/Classes/contacts/view/components/Contacts.m.tt