objective-i에서 iOS 앱 사용자 정의. 언어에 익숙하지 않고 부울 속성을 설정하는이 간단한 작업으로 인해 너무 오래 걸렸습니다.모델의 BOOL 속성 설정
아무도 여기에 조언을 제공 할 수 있습니까? 비디오
// have tried these two an many other things...
video.hasCustomThumbnail = [NSNumber numberWithBool:NO];
video.hasCustomThumbnail = @NO;
을 참조
Video.h
@property (nonatomic, retain) NSNumber * hasCustomThumbnail;
Video.m
@implementation Video
@dynamic hasCustomThumbnail;
@end
에 otherfile 내가 상관없이 내가이 시도 얼마나 많은 방법으로 수십 얻을 오류 것은 : Using a BOOL property
자동 완성 "hasCustomThumbnail"를 제안하기 때문에 나는 또한 비디오를 알고올바르게 참조 :
'NSInvalidArgumentException', reason: '-[Video setHasCustomThumbnail:]: unrecognized selector sent to instance 0x60c0004925c0'
이 등 많은 제안를 시도
내가 타이핑을 시작할 때.는 단순히 OBJ-C이 :-)
어떤 제안을하고 얼마나 열심히 믿을 수 없다?
'비디오'의 수퍼 클래스 란 무엇입니까? '비디오'는 어떻게 선언됩니까? – clemens
@ alexr101 pls 내 대답을 확인하십시오. – GeneCode
'Video'는 CoreData 객체의 표현인가요? – Larme