Objective c parse.com |如何在UITextView上显示结果?

Objective c parse.com |如何在UITextView上显示结果?,objective-c,uitextview,parse-platform,Objective C,Uitextview,Parse Platform,这是我的测试查询 PFQuery *lookingForSomething = [PFQuery queryWithClassName:@"AprilMessage"]; [lookingForSomething whereKey:@"user" equalTo:[PFUser currentUser]]; [lookingForSomething findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {

这是我的测试查询

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!”并将其显示在屏幕上, 这就是我所做的,但由于某种原因它不起作用

 // 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 !!! 
//与刚才添加最后几行之前的代码相同
PFQuery*lookingForSomething=[PFQuery queryWithClassName:@“AprilMessage”];
[lookingForSomething whereKey:@“user”等于:[PFUser currentUser]];
[查找某些findObjectsInBackgroundWithBlock:^(NSArray*对象,NSError*错误){
//这里什么都没有
for(在对象中找到PFObject*对象){
NSLog(@“这是我的objectFound”,objectFound);
//添加此新行

objectFound[@“message”]=\u textChat.text;您的最后一行是向后的。应该是

_textChat.text = objectFound[@"message"];
假设_textChat和objectFound[@“message”]都不是空的,这应该可以工作

_textChat.text = objectFound[@"message"];