Skip to content

Commit

Permalink
-stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCrabbe committed Jun 20, 2014
1 parent 558612a commit cd2742b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion UniversityPrograms/UniversityPrograms/MyUPViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ -(void)build{
self.emailLabel.text= [[NSUserDefaults standardUserDefaults] stringForKey:@"email"];

}

self.myUPTableView.separatorColor = [UIColor getThemeColor];
self.cwidLabel.textColor = textColor;
self.emailLabel.textColor = textColor;
self.firstNameLabel.textColor = themeColor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ - (void)viewDidLoad
self.cwid.text=[[NSUserDefaults standardUserDefaults] stringForKey:@"cwid"];
self.email.text=[[NSUserDefaults standardUserDefaults] stringForKey:@"email"];


self.firstName.autocapitalizationType = UITextAutocapitalizationTypeWords;
self.lastName.autocapitalizationType = UITextAutocapitalizationTypeWords;
// Do any additional setup after loading the view from its nib.


Expand Down Expand Up @@ -132,7 +133,7 @@ - (BOOL)validateString:(NSString *)string withPattern:(NSString *)pattern

- (void)saveInfo{

if([self.cwid.text length]<8 || [self.cwid.text length]>8||![self validateString:self.cwid.text withPattern:@"^[0-9]{8}$"] || ![self validateString:self.lastName.text withPattern:@"^[a-zA-Z]{1,}$"]|| ![self validateString:self.email.text withPattern:@"^[a-zA-Z]{1,64}@(?:crimson)|(?:bama)\\.ua\\.edu$"]||![self validateString:self.firstName.text withPattern:@"^[a-zA-Z]{1,}$"]){
if([self.cwid.text length]<8 || [self.cwid.text length]>8||![self validateString:self.cwid.text withPattern:@"^[0-9]{8}$"] || ![self validateString:self.lastName.text withPattern:@"^[a-zA-Z]{1,}$"]|| ![self validateString:self.email.text withPattern:@"^[a-zA-Z][a-zA-Z0-9]{1,63}@[a-zA-Z0-9]{1,64}(?:\\.[a-zA-Z0-9]{2,64})*\\.[a-zA-Z]{3,5}$"]||![self validateString:self.firstName.text withPattern:@"^[a-zA-Z]{1,}$"]){
[self addInvalidAlertView];

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<rect key="frame" x="10" y="10" width="300" height="44"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="words" autocorrectionType="no" returnKeyType="next"/>
<textInputTraits key="textInputTraits" autocapitalizationType="words" autocorrectionType="yes" returnKeyType="next"/>
<connections>
<outlet property="delegate" destination="-1" id="gwX-ii-6YU"/>
</connections>
Expand Down

0 comments on commit cd2742b

Please sign in to comment.