我從github https://github.com/0xced/XCDFormInputAccessoryView下載了XCDFormInputAccessoryView。我試圖在xcode中運行它,並收到許多警告直接訪問實例變量
實例變量「---」正在被直接訪問。任何幫助?
- (void) setTextInputs:(NSArray *)textInputs
{
// Some day, IBOutletCollection will be properly sorted, in the meantime, sort it!
_textInputs = [textInputs sortedArrayUsingComparator:^NSComparisonResult(UIView *view1, UIView *view2) {
return [@(view1.tag) compare:@(view2.tag)];
}];
}