|
@@ -9,7 +9,7 @@
|
|
|
#import "LoginViewController.h"
|
|
#import "LoginViewController.h"
|
|
|
#import "RetrievePasswordViewController.h"
|
|
#import "RetrievePasswordViewController.h"
|
|
|
#import <CoreLocation/CoreLocation.h>
|
|
#import <CoreLocation/CoreLocation.h>
|
|
|
-
|
|
|
|
|
|
|
+#import "SignatureViewController.h"
|
|
|
@interface LoginViewController ()
|
|
@interface LoginViewController ()
|
|
|
@property (strong, nonatomic) IBOutlet UILabel *verLabel;
|
|
@property (strong, nonatomic) IBOutlet UILabel *verLabel;
|
|
|
@property (nonatomic,strong) CLLocationManager *locationManager;
|
|
@property (nonatomic,strong) CLLocationManager *locationManager;
|
|
@@ -158,11 +158,40 @@
|
|
|
[self presentViewController:vc animated:YES completion:nil];
|
|
[self presentViewController:vc animated:YES completion:nil];
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+-(void) test_signature
|
|
|
|
|
+{
|
|
|
|
|
+ SignatureViewController * vc =[ [UIStoryboard storyboardWithName:@"signature"
|
|
|
|
|
+ bundle:[NSBundle mainBundle]]
|
|
|
|
|
+ instantiateViewControllerWithIdentifier:@"SignatureViewController"];
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ vc.onReturnImg = ^(UIImage* img)
|
|
|
|
|
+ {
|
|
|
|
|
+// if(img!=nil) {
|
|
|
|
|
+// model.signature = img;
|
|
|
|
|
+// if (model.expand) {
|
|
|
|
|
+//
|
|
|
|
|
+// if ([model.expand isKindOfClass:[NSDictionary class]]) {
|
|
|
|
|
+//
|
|
|
|
|
+// NSIndexPath *indexPath = [self.tableView indexPathForCell:cell];
|
|
|
|
|
+// [self expandIndexPath:indexPath withJsonItem:model.expand];
|
|
|
|
|
+//
|
|
|
|
|
+// } else if ([model.expand isKindOfClass:[RAEditBaseModel class]]) {
|
|
|
|
|
+//
|
|
|
|
|
+// if (((RAEditBaseModel *)model.expand).autofill) {
|
|
|
|
|
+// [((RAEditBaseModel *)model.expand) updateDefaultValue];
|
|
|
|
|
+// }
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// }
|
|
|
|
|
+// }
|
|
|
|
|
+ };
|
|
|
|
|
+ [self.navigationController pushViewController:vc animated:NO];
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
- (IBAction)LoginButtonClick:(UIButton *)sender {
|
|
- (IBAction)LoginButtonClick:(UIButton *)sender {
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+// return [self test_signature];
|
|
|
|
|
|
|
|
NSString*password= self.editPassword.text;
|
|
NSString*password= self.editPassword.text;
|
|
|
NSString*user = self.editUser.text;
|
|
NSString*user = self.editUser.text;
|