Wie kann ich meine Firebase-Daten in eine Textview einfügen? Die Information kommt als NSDictionary.Firebase NSDictionary to Textview
2016-05-24 10:15:45.523 Weather[1248:29689] {
baro = 1;
humidity = 3;
temp = 2;
}
Ich habe versucht, in String zu Textview zu konvertieren, aber das funktioniert nicht?
Firebase *usersRef = [ref childByAppendingPath: @"id/"];
[usersRef observeEventType:FEventTypeValue withBlock:^(FDataSnapshot *snapshot) {
NSLog(@"%@ -> %@", snapshot.key, snapshot.value);
NSLog(@"%@", snapshot.value);
string1 = snapshot.value;
Jede Hilfe wird geschätzt.
Also was ist das Problem, brauchen Sie String? Du brauchst testView? – Alok
Ich möchte alle Informationen in eine Textansicht von dort legen, ich weiß, was zu tun ist. – vype
'[snapshot.value objectForKey: @" Your Key "];' versuchen Sie es einmal ... fügen Sie es zu textview.text .... hoffe, das funktioniert –