전용 >>>>NSLog(@"%@", _currentPost[@"postString"]);
오른쪽 문자열을 인쇄하십시오.xcode에서 속성 값을 설정할 수없는 이유는 무엇입니까?
NSLog(@"%@",postTextView.text);
왜 인쇄 하시겠습니까?
어떻게 값을 textView.text로 전달할 수 있습니까?
문자열을 textView에 전달할 수없는 이유는 무엇입니까?
#import <UIKit/UIKit.h>
#import <Parse/Parse.h>
@interface JCPostTableViewCell : UITableViewCell
@property (strong, nonatomic) PFObject *currentPost;
@property (strong, nonatomic) IBOutlet UITextView *postTextView;
@end
=========================================== =============
#import "JCPostTableViewCell.h"
@implementation JCPostTableViewCell
@synthesize postTextView;
-(void) layoutSubviews
{
postTextView.text = _currentPost[@"postString"];
NSLog(@"%@", _currentPost[@"postString"]);
NSLog(@"%@", postTextView.text);
}
후 대리자 방법을 설정으로
같은. 경고를 표시하고 경고를 무시하지 마십시오. 메모리 오류를 막기 위해 형식 문자열과 함께'NSLog'를 사용하십시오. – duci9y
내 생각 엔 콘센트가 연결되지 않았으며'nil'입니다. 확인 부탁합니다. – trojanfoe