BallView.h
上传用户:jjjjag8
上传日期:2017-04-17
资源大小:1443k
文件大小:0k
源码类别:

iPhone

开发平台:

MultiPlatform

  1. #define kVelocityMultiplier 500
  2. #import <UIKit/UIKit.h>
  3. @interface BallView : UIView {
  4. UIImage *image;
  5. CGPoint currentPoint;
  6. CGPoint previousPoint;
  7. UIAcceleration *acceleration;
  8. CGFloat ballXVelocity;
  9. CGFloat ballYVelocity;
  10. }
  11. @property (nonatomic, retain) UIImage *image;
  12. @property CGPoint currentPoint;
  13. @property CGPoint previousPoint;
  14. @property (nonatomic, retain) UIAcceleration *acceleration;
  15. @property CGFloat ballXVelocity;
  16. @property CGFloat ballYVelocity;
  17. - (void)draw;
  18. @end