Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VCell.xccheckout
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@
<string>VCell</string>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should be in your local .gitignore and should not be checked in

<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>BB61F5F3-DD20-4CE8-BB49-137EDE555130</key>
<string>https://github.com/aciidb0mb3r/VCell-iOS-App.git</string>
<key>5F5F21DDDF74330DD4B5309C5D409E49A2C92A6A</key>
<string>https://github.com/shubhsin/VCell-iOS-App</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>VCell.xcodeproj/project.xcworkspace</string>
<string>VCell.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>BB61F5F3-DD20-4CE8-BB49-137EDE555130</key>
<key>5F5F21DDDF74330DD4B5309C5D409E49A2C92A6A</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/aciidb0mb3r/VCell-iOS-App.git</string>
<string>https://github.com/shubhsin/VCell-iOS-App</string>
<key>IDESourceControlProjectVersion</key>
<integer>110</integer>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>BB61F5F3-DD20-4CE8-BB49-137EDE555130</string>
<string>5F5F21DDDF74330DD4B5309C5D409E49A2C92A6A</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>BB61F5F3-DD20-4CE8-BB49-137EDE555130</string>
<string>5F5F21DDDF74330DD4B5309C5D409E49A2C92A6A</string>
<key>IDESourceControlWCCName</key>
<string>VCell-iOS-App</string>
</dict>
Expand Down
Binary file modified VCell/.DS_Store
Binary file not shown.
12 changes: 12 additions & 0 deletions VCell/LoginViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ @interface LoginViewController ()
{
AccessToken *accessToken;
}
@property UITapGestureRecognizer *tapToHide;

@end

@implementation LoginViewController
Expand All @@ -26,6 +28,16 @@ - (void)viewDidLoad
UITabBarController *tabBarController = [self.storyboard instantiateViewControllerWithIdentifier:@"mainTabBarContoller"];
[self presentViewController:tabBarController animated:NO completion:nil];
}

_tapToHide = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hideKeyboard)];
_tapToHide.cancelsTouchesInView = NO; // Will ensure that cell selection takes place when tapped
[self.tableView addGestureRecognizer:_tapToHide];
}

- (void)hideKeyboard
{
[_usernameTextField resignFirstResponder];
[_passwordTextField resignFirstResponder];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs space after -

}

- (NSString*)sha1:(NSString*)input
Expand Down
16 changes: 16 additions & 0 deletions VCell/RegisterationViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

@interface RegisterationViewController ()

@property UITapGestureRecognizer *tapToHide;

@end
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above, consider using properties


Expand All @@ -20,8 +21,23 @@ @implementation RegisterationViewController
- (void)viewDidLoad
{
[super viewDidLoad];
_tapToHide = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hideKeyboard)];
_tapToHide.cancelsTouchesInView = NO; // Will ensure that cell selection takes place when tapped
[self.tableView addGestureRecognizer:_tapToHide];

}

- (void)hideKeyboard
{
[_usernameTF resignFirstResponder];
[_passwordTF resignFirstResponder];
[_rePasswordTF resignFirstResponder];
[_firstNameTF resignFirstResponder];
[_lastNameTF resignFirstResponder];
[_emailTF resignFirstResponder];
[_institutionTF resignFirstResponder];
[_countryTF resignFirstResponder];
}
//-(void)tableClicked
//{
// [self.usernameTF resignFirstResponder];
Expand Down