12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // LuckyDrawView.h
- // 大转盘
- //
- // Created by 谭启宏 on 16/3/2.
- // Copyright © 2016年 tqh. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import "packageRoolModel.h"
- @protocol LuckyDrawViewDelegate <NSObject>
- - (void)LuckyDrawViewDidFinishWidthIndex:(NSInteger)index;
- @optional
- - (void)LuckyDrawWheelDidFinishWidthIndex:(packageRoolModel *)model index:(NSInteger )index;
- @end
- //抽奖用的大转盘
- @interface LuckyDrawView : UIView
- {
- UIImageView* disk;
- float angle;
-
- NSTimer* timer;
- BOOL updateEnable;
- }
- - (float) toAngle:(CGPoint) v;
- - (void)setRotate:(float)degress;
- - (CGPoint) cgpSub:(CGPoint)v1: (CGPoint)v2;
- - (void)update;
- @property (nonatomic,assign)NSInteger numberIndex;
- @property (nonatomic,assign)id<LuckyDrawViewDelegate>delegate;
-
- @end
- /**
- //WithFrame:CGRectMake(2, 2, 109, 109)]
- //self.playButton.center = CGPointMake(CGRectGetWidth(self.jiantouBtn)/2, CGRectGetWidth(self.bounds)/2);
-
- */
|