Created
September 27, 2011 21:36
-
-
Save greenisus/1246318 to your computer and use it in GitHub Desktop.
view controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// RSAccountsViewController.m | |
// Rackspace | |
// | |
// Created by Michael Mayo on 9/27/11. | |
// Copyright (c) 2011 Rackspace, US Inc. All rights reserved. | |
// | |
#import "RSAccountsViewController.h" | |
#import "RSAccount.h" | |
@implementation RSAccountsViewController | |
- (IBAction)addButtonPressed:(id)sender { | |
RSAccount *account = [RSAccount blank]; | |
account.username = @"mike"; | |
BOOL result = [account save]; | |
NSLog(@"account saved: %i", result); | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment