Sha256: 76dc99b19eeb99a92403d3a4a4789e6c424887bf00d2469353499a880be2e955
Contents?: true
Size: 1.1 KB
Versions: 4
Compression:
Stored size: 1.1 KB
Contents
// // Contacts.m // PureMVC_ObjectiveC // // PureMVC Port to ObjectiveC by Brian Knorr <brian.knorr@puremvc.org> // PureMVC - Copyright(c) 2006-2008 Futurescale, Inc., Some rights reserved. // #import "Contacts.h" @implementation Contacts @synthesize userList, userForm, navigation; -(id)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { self.navigation = [[[UINavigationController alloc] init] autorelease]; self.userList = [[[UserList alloc] init] autorelease]; self.userForm = [[[UserForm alloc] init] autorelease]; [navigation pushViewController:userList animated:NO]; [self addSubview:navigation.view]; } return self; } -(void)showUserForm { [navigation pushViewController:userForm animated:YES]; } -(void)showUserList { [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.userList = nil; self.userForm = nil; [super dealloc]; } @end
Version data entries
4 entries across 4 versions & 1 rubygems