Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1049545
  • 博文数量: 403
  • 博客积分: 10272
  • 博客等级: 上将
  • 技术积分: 4407
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-24 14:22
文章分类

全部博文(403)

文章存档

2012年(403)

分类: 嵌入式

2012-04-14 20:05:12

#import #import typedef enum{ UIImageExNormal = 0, UIImageExFull }UIImageExState; @interface UIImageViewEx : UIImageView { UIView *parentview; //父窗口,即用将UIImageEx所加到的UIView BOOL isPanEnable; //是否可以移动 BOOL isPinchEnable; //是否可以放大缩小 BOOL isRotateEnable; //是否可以旋转 BOOL isTap; //是否可以点击触摸 UIImageExState imageState; //图片当前状态 CGFloat imageScale; //最大缩放的倍数 CGFloat imageSize; //记录图片的累计缩放 CGFloat imageRotation; //记录图片的原始角度 CGPoint imagePoint; //记录图片的原始位置 UITextView *textView; //动态弹出的文本 } @property (nonatomic,retain) UIView *parentview; @property (nonatomic) CGFloat imageSize; @property (nonatomic) CGFloat imageRotation; @property (nonatomic) CGPoint imagePoint; @property BOOL isPanEnable; @property BOOL isRotateEnable; @property BOOL isPinchEnable; @property BOOL isTap; - (void)handlePan:(UIPanGestureRecognizer *)recognizer; - (void)handlePinch:(UIPinchGestureRecognizer *)recognizer; - (void)handleRotate:(UIRotationGestureRecognizer *)recognizer; - (void)handleTap:(UITapGestureRecognizer *)recognizer; //必须设置的 - (void)setScaleAndRotation:(UIView*)imageView; - (void)setInfoText:(NSString *)string; - (void)setShadow:(BOOL)isShadow; @end
阅读(1758) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~