|
@@ -198,6 +198,10 @@
|
|
|
make.bottom.mas_equalTo(-30 - AdaptTabHeight);
|
|
|
}];
|
|
|
|
|
|
+ // 添加拖拽手势
|
|
|
+ UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePan:)];
|
|
|
+ [_uploadFileButton addGestureRecognizer:panGesture];
|
|
|
+
|
|
|
NSMutableArray *arr = [NSMutableArray new];
|
|
|
NSArray *diskList = ksharedAppDelegate.cloudPhoneExtraFileListMod.data;
|
|
|
if(diskList && [diskList isKindOfClass:[NSArray class]]){
|
|
@@ -306,6 +310,24 @@
|
|
|
|
|
|
}
|
|
|
|
|
|
+#pragma mark 处理拖拽手势
|
|
|
+- (void)handlePan:(UIPanGestureRecognizer *)gesture {
|
|
|
+ if (gesture.state == UIGestureRecognizerStateChanged) {
|
|
|
+ // 获取手指拖拽的偏移量
|
|
|
+ CGPoint translation = [gesture translationInView:self.view];
|
|
|
+
|
|
|
+ // 更新视图位置
|
|
|
+ CGPoint newCenter = CGPointMake(
|
|
|
+ _uploadFileButton.center.x + translation.x,
|
|
|
+ _uploadFileButton.center.y + translation.y
|
|
|
+ );
|
|
|
+ _uploadFileButton.center = newCenter;
|
|
|
+
|
|
|
+ // 重置偏移量,避免累加
|
|
|
+ [gesture setTranslation:CGPointZero inView:self.view];
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
#pragma mark - 懒加载
|
|
|
- (UITableView *)tableView{
|
|
@@ -603,7 +625,8 @@
|
|
|
{
|
|
|
self.appInstallTypeV.hidden = !isDefaultTabType;
|
|
|
|
|
|
- if(isDefaultTabType && !isSecondTabType){
|
|
|
+ if(isDefaultTabType //&& !isSecondTabType
|
|
|
+ ){
|
|
|
_curInstalledAppListMod = _getInstalledAppListMod;
|
|
|
self.curEditTypeBottomView.isCanDeleteType = NO;
|
|
|
|