|
|
@@ -24,6 +24,8 @@
|
|
|
#import "ModifyDeviceNamePopupView.h"
|
|
|
#import "JYPullToRefreshController.h"
|
|
|
|
|
|
+#import "ThingsForcedDelViewController.h"
|
|
|
+#import "ThingsGeneralDelViewController.h"
|
|
|
/**
|
|
|
|
|
|
Hub 명 Text Color : kUITextColor03
|
|
|
@@ -484,6 +486,24 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+-(void)deleteDevice
|
|
|
+{
|
|
|
+// DeviceModel *device =_deviceList[indexPath.row];
|
|
|
+
|
|
|
+ if ([_deviceDetail.onlineState isEquestToIgnoreCase:@"OFF"]) {
|
|
|
+ ThingsForcedDelViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"ThingsForcedDelViewController" storyboardName:@"Things"];
|
|
|
+
|
|
|
+ vc.delDevice = _deviceDetail;
|
|
|
+ [self showTransparencyModalView:vc removeSelf:NO];
|
|
|
+
|
|
|
+ } else {
|
|
|
+ ThingsGeneralDelViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"ThingsGeneralDelViewController" storyboardName:@"Things"];
|
|
|
+
|
|
|
+ vc.delDevice = _deviceDetail;
|
|
|
+ [self showTransparencyModalView:vc removeSelf:NO];
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
#pragma mark - MoreButtonDelegate
|
|
|
-(void)moreBtnAction:(id)sender
|
|
|
{
|
|
|
@@ -559,6 +579,11 @@
|
|
|
// }
|
|
|
}
|
|
|
|
|
|
+-(void)finishDeviveDelete
|
|
|
+{
|
|
|
+ [self btnCloseTouched:nil];
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
#pragma mark - MemoryWarning
|
|
|
|