이것은 내가 다른 클래스의 속성 (BIDDoubleComponentPickerViewController)를 참조하려고하는 내 클래스의 코드는 selectedValue 및 selectedSuit 변수에 액세스 할 때 그들은 값과 수트가 다른 클래스에서 null이 아니라는 사실을 알고있을 때 null이라고 주장합니다.수 없습니다
NSInteger valueRow = [doublePicker selectedRowInComponent:
kValueComponent];
NSInteger suitRow = [doublePicker selectedRowInComponent:
kSuitComponent];
value=[[NSString alloc]initWithString:[values objectAtIndex:valueRow]];
suit=[[NSString alloc]initWithString:[suits objectAtIndex:suitRow]];
을 여기에있는 코드를 속성의 선언 :
@property (strong, nonatomic) NSString *value;
@property (strong, nonatomic) NSString *suit;
누구나 어떤 아이디어가 여기 BIDDoubleComponentPickerViewController의 속성을 설정하는 코드는?
물론 할 수 있습니다. 끝난. –