ios - Add HMRoom to HMHome is not working properly -


i have question regarding hmroom adding. when adding hmroom hmhome added after successful adding trying load hmhome rooms in tableview. not returning rooms immediately. - (void)home:(hmhome *)home didaddroom:(hmroom *)room method not getting called though set delegate hmhome calling homemanagerdidupdatehomes method after 30 seconds. 1 suggest me solve issue.

you calling wrong method add room home. add room home need call,

- (void)addroomwithname:(nsstring *)roomname completionhandler:(void (^)(hmroom *room, nserror *error))completion; 

you can reload table information of room have added in completionhandler of addroomwithname method. called object of hmhome in want add room.

the method calling,

- (void)home:(hmhome *)home didaddroom:(hmroom *)room tozone:(hmzone *)zone 

is delegate method called when add room zone.

and make sure have set delegate of home properly.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -