SignatureViewController.h 1.1 KB

12345678910111213141516171819202122232425262728
  1. //
  2. // SignatureViewController.h
  3. // RedAnt ERP Mobile
  4. //
  5. // Created by Ray on 14-8-7.
  6. // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <GLKit/GLKit.h>
  10. #import "SignatureView.h"
  11. @class SignatureViewController;
  12. @protocol SignatureViewControllerDelegate <NSObject>
  13. -(void) SignatureVCReturnImage:(UIImage *)image indexPath :(NSIndexPath*) indexPath;
  14. -(void) SignatureVCReturnData:(NSData *)imagedata indexPath :(NSIndexPath*) indexPath;
  15. @end
  16. @interface SignatureViewController : GLKViewController<UITextFieldDelegate>
  17. //@property (strong, nonatomic) IBOutlet UIView *debugView;
  18. //@property (strong, nonatomic) IBOutlet SignatureView *signatureView;
  19. @property (strong, nonatomic) SignatureView *signatureView;
  20. @property (strong,nonatomic) NSIndexPath *indexPath;
  21. //@property (strong,nonatomic) UIImage *existSignature;
  22. @property (nonatomic, weak) id<SignatureViewControllerDelegate> delegate;
  23. @property (nonatomic , copy) void (^onReturnImg)(UIImage* img);
  24. @property CGSize signature_ratio;
  25. @property int linewidth;
  26. @end