瀏覽代碼

apex land 增加privacy policy

Ray Zhang 6 年之前
父節點
當前提交
27409d7432
共有 1 個文件被更改,包括 32 次插入3 次删除
  1. 32 3
      Redant Drivers/Apex And Drivers/Login/LoginViewController.m

+ 32 - 3
Redant Drivers/Apex And Drivers/Login/LoginViewController.m

@@ -9,7 +9,7 @@
 #import "LoginViewController.h"
 #import "RetrievePasswordViewController.h"
 #import <CoreLocation/CoreLocation.h>
-
+#import "SignatureViewController.h"
 @interface LoginViewController ()
 @property (strong, nonatomic) IBOutlet UILabel *verLabel;
 @property (nonatomic,strong) CLLocationManager *locationManager;
@@ -158,11 +158,40 @@
     [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 {
     
-    
+//    return [self test_signature];
     
     NSString*password= self.editPassword.text;
     NSString*user = self.editUser.text;