0
這是我的測試查詢parse.com |如何在UITextView上顯示結果?
PFQuery *lookingForSomething = [PFQuery queryWithClassName:@"AprilMessage"];
[lookingForSomething whereKey:@"user" equalTo:[PFUser currentUser]];
[lookingForSomething findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
// nothing here
for (PFObject *objectFound in objects) {
NSLog(@" this is my objectFound", objectFound);
到目前爲止好,我的NSLog(objectFound)的結果是:
{
message = hello world ! ;
reciever = "<PFUser:WNOmhmrO3L>";
user = "<PFUser:WNOmhmrO3L>";
我想要做的就是獲取消息字符串「hello世界!「在這裏它顯示在屏幕上, 我做什麼,但它不工作由於某種原因
// same code from before just adding the last lines down there
PFQuery *lookingForSomething = [PFQuery queryWithClassName:@"AprilMessage"];
[lookingForSomething whereKey:@"user" equalTo:[PFUser currentUser]];
[lookingForSomething findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
// nothing here
for (PFObject *objectFound in objects) {
NSLog(@" this is my objectFound", objectFound);
// adding this new line
objectFound[@"message"] = _textChat.text; <-- textChat is a UITextView !!!
任何想法是我有什麼錯?
我覺得很愚蠢!非常感謝 ! – XcodeNOOB