#import "ViewController.h"
@interface ViewController (){
//设置垃圾桶是否为空变量,NO为满,YES为空
BOOL boolTrashEmptyFlag;
}
//定义两张图和它们容器的属性
@property (strong,nonatomic) UIImage *imageTrashFull;
@property (strong,nonatomic) UIImage *imageTrashEmpty;
@property (strong,nonatomic) UIImageView *imageView;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
//界面设置
CGRect screen = [[UIScreen mainScreen] bounds];
CGFloat imageViewWidth = 128;
CGFloat imageViewHeight = 128;
CGFloat imageViewTopView = 148;
CGRect frame = CGRectMake((screen.size.width - imageViewWidth)/2 , imageViewTopView, imageViewWidth, imageViewHeight);
self.imageView = [[UIImageView alloc] initWithFrame:frame];
self.imageTrashFull = [UIImage imageNamed:@"Blend Trash Full.png"];
self.imageTrashEmpty = [UIImage imag
ios开发——手势识别(Long Press)
最新推荐文章于 2020-12-17 08:53:53 发布