|
|
@@ -399,7 +399,8 @@
|
|
|
}
|
|
|
|
|
|
- (void)addNewDevice {
|
|
|
- UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"ThingsAddViewController" storyboardName:@"Things"];
|
|
|
+ ThingsAddViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"ThingsAddViewController" storyboardName:@"Things"];
|
|
|
+ vc.selectHub = _selectHub;
|
|
|
[self presentViewController:vc animated:YES completion:nil];
|
|
|
}
|
|
|
|
|
|
@@ -430,6 +431,7 @@
|
|
|
|
|
|
[[RequestHandler handler] sendAsyncRequestAPIPath:path method:ksHTTPRequestGET parameters:nil
|
|
|
modelClass:[DeviceListModel class] showLoadingView:NO completion:^(id responseObject) {
|
|
|
+ NSLog(@"Response : %@", responseObject);
|
|
|
if (!responseObject) {//응답결과가 잘못되었거나 없을 경우,
|
|
|
return;
|
|
|
}
|
|
|
@@ -548,8 +550,17 @@
|
|
|
}
|
|
|
|
|
|
- (void)updateTitle {
|
|
|
+ _imgvArrow.hidden = ![[JDFacade facade].loginUser isMultiHomeHub];
|
|
|
+ if (_imgvArrow.hidden) {
|
|
|
+ DeviceModel *info = [[JDFacade facade].loginUser getHomeHub];
|
|
|
+ _lblTitle.text = [NSString stringWithFormat:@"%@", info.deviceName];
|
|
|
+ } else {
|
|
|
+ // todo : 링크 걸기
|
|
|
+ DeviceModel *info = [[JDFacade facade].loginUser getHomeHub];
|
|
|
+ _lblTitle.text = [NSString stringWithFormat:@"%@", info.deviceName];
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
-// _lblTitle.text = [NSString stringWithFormat:@"장치 전체 %zd", _deviceList.count];
|
|
|
_lblCount.text = [NSString stringWithFormat:@"%zd", _deviceList.count];
|
|
|
NSLog(@"HomeHubID : %@", [JDFacade facade].loginUser.homehubDeviceId);
|
|
|
if (![JDFacade facade].loginUser.hasHomeHub) {//홈허브 아이디가 없는 경우,
|