- (void) viewdidload {[Super viewdidload]; //creating a wild Dog instantiation object for listening to numeric changes at any timeWilddog *myrootref = [[Wilddog alloc] Initwithurl:@"Https://exile.wilddogio.com/weather"]; //Listening key value[Myrootref observeeventtype:weventtypevalue withblock:^ (Wdatasnapshot *snapshot) {NSLog (@"%@-%@", Snapshot.key, Snapshot.value); }]; //assigning an initial value to the weather key[Myrootref SetValue:@"Sunny"]; UIButton* Btn1=[[uibutton Alloc]initwithframe:cgrectmake ( -, -, -, -)]; Btn1.backgroundcolor=[Uicolor Orangecolor]; [Btn1 addtarget:self Action: @selector (changeValue1) forcontrolevents:uicontroleventtouchupinside]; [Self.view ADDSUBVIEW:BTN1]; UIButton* Btn2=[[uibutton Alloc]initwithframe:cgrectmake ( -, -, -, -)]; Btn2.backgroundcolor=[Uicolor Orangecolor]; [Btn2 addtarget:self Action: @selector (ChangeValue2) forcontrolevents:uicontroleventtouchupinside]; [Self.view addsubview:btn2];}-(void) changevalue1{Wilddog*myrootref = [[Wilddog alloc] Initwithurl:@"Https://exile.wilddogio.com/weather"]; [Myrootref SetValue:@"Snow"];}-(void) changevalue2{Wilddog*myrootref = [[Wilddog alloc] Initwithurl:@"Https://exile.wilddogio.com/weather"]; [Myrootref SetValue:@" Wind"];}
Write Data using Wild Dog (wilddog) cloud SetValue