// // LuckyDrawView.h // 大转盘 // // Created by 谭启宏 on 16/3/2. // Copyright © 2016年 tqh. All rights reserved. // #import #import "packageRoolModel.h" @protocol LuckyDrawViewDelegate - (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)iddelegate; @end /** //WithFrame:CGRectMake(2, 2, 109, 109)] //self.playButton.center = CGPointMake(CGRectGetWidth(self.jiantouBtn)/2, CGRectGetWidth(self.bounds)/2); */