TuyaInc / tuyasmart_home_ios_sdk

Tuya Smart iOS Home SDK
https://tuyainc.github.io/tuyasmart_home_ios_sdk_doc
50 stars 19 forks source link

Delete a group #8

Closed Coiado closed 5 years ago

Coiado commented 5 years ago

Hello, I'm trying to use use the function dismiss from a instance TuyaSmartGroup, and I got the error code= -999, but my 2 completions (success and failure) don't treat this error, how can I dismiss a group without error?

0x5e commented 5 years ago

Hi, You released the local TuyaSmartGroup instance so network request was canceled. The instance should be retained by viewcontroller or something. https://tuyainc.github.io/tuyasmart_home_ios_sdk_doc/en/resource/Faq.html

Coiado commented 5 years ago

This solve my problem!!! Thank you very much :)