Permalink
Browse files

View current api url in the change server text field

  • Loading branch information...
Ernesto Vargas
Ernesto Vargas committed Feb 16, 2012
1 parent 03358a7 commit 3609e0441d1eac618475e1e3ddbba39d5916eebc
@@ -9,11 +9,11 @@
continueAfterRunningActions = "No"
isPathRelative = "1"
filePath = "Messagee/LoginViewController.m"
- timestampString = "351126327.050673"
+ timestampString = "351127561.474596"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
- startingLineNumber = "220"
- endingLineNumber = "220"
+ startingLineNumber = "222"
+ endingLineNumber = "222"
landmarkName = "@implementation LoginViewController"
landmarkType = "3">
</FileBreakpoint>
@@ -15,7 +15,7 @@ @implementation LoginViewController
@synthesize usernameTextField;
@synthesize passwordTextField;
-- (void)authorizeUser:(NSString *)username withPassword:(NSString *)password {
+- (void)authorizeUser:(NSString *)username withPassword:(NSString *)password {
// GET access token and map user data
RKObjectMapping* userMapping = [RKObjectMapping mappingForClass:[UGUser class]];
[userMapping mapKeyPath:@"username" toAttribute:@"username"];
@@ -37,13 +37,14 @@ - (void)loadView
}
*/
-/*
+
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad
{
+ self.serverTextField.text = [[UGClient sharedInstance] usergridApiUrl];
[super viewDidLoad];
}
-*/
+
- (void)viewDidUnload
{
@@ -60,7 +61,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface
}
- (IBAction)changeServerButton:(id)sender {
- [[UGClient sharedInstance] setUsergridApiUrl:[serverTextField text]];
+ [[UGClient sharedInstance] UGClientApiUrl:[serverTextField text]];
[self dismissModalViewControllerAnimated:YES];
}

0 comments on commit 3609e04

Please sign in to comment.