-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathViewController.m
More file actions
47 lines (32 loc) · 970 Bytes
/
Copy pathViewController.m
File metadata and controls
47 lines (32 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// ViewController.m
// Example1
//
// Created by Rodney Weems on 9/23/16.
// Copyright © 2016 Rodney Weems. All rights reserved.
//
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
[_leftTextField becomeFirstResponder];
_leftTextField.layer.borderColor = [[UIColor blackColor] CGColor];
_leftTextField.layer.borderWidth = 2.0;
_leftTextField.layer.cornerRadius = 5;
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)clearLeftAndChange:(id)sender {
_leftTextField.text = @"";
[_rightTextField becomeFirstResponder];
}
- (IBAction)clearRightAndChange:(id)sender {
_rightTextField.text = nil;
[_leftTextField becomeFirstResponder];
}
@end