文件名称:长按拖动排序
文件大小:4KB
文件格式:ZIP
更新时间:2019-02-15 04:59:42
长按 拖动 排序
/* * 使用方法 **/ //- (void)viewDidLoad { // [super viewDidLoad]; // // Do any additional setup after loading the view. // self.view.backgroundColor = [UIColor grayColor]; // // StBtnTouchMove *stBtn = [[StBtnTouchMove alloc]initWithFrame:CGRectMake(0, 200, 375, 100)]; // [self.view addSubview:stBtn]; // stBtn.buttonArray = [[NSMutableArray alloc]init]; // for (NSInteger i = 0; i < 4; i++) { // UIButton *btn = [[UIButton alloc]initWithFrame:CGRectMake(i*375/4.0, 0, 375/4.0, 100)]; // [stBtn addSubview:btn]; // [btn setTitle:[NSString stringWithFormat:@"btn%ld",i] forState:UIControlStateNormal]; // btn.backgroundColor = [UIColor redColor]; // [stBtn.buttonArray addObject:btn]; // [btn addTarget:self action:@selector(btnClick) forControlEvents:UIControlEventTouchUpInside]; // } // [stBtn touchMove]; //}
【文件预览】:
StBtnTouchMove
----StBtnTouchMove.m(4KB)
----.DS_Store(6KB)
----StBtnTouchMove.h(394B)