Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

instance variable being directly accessed

I downloaded XCDFormInputAccessoryView from github https://github.com/0xced/XCDFormInputAccessoryView. I tried to run it in xcode and receive numerous warnings of

instance variable "---" is being directly accessed. Any help??

- (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)];
    }];
}
like image 929
GOAT Avatar asked Jan 13 '23 19:01

GOAT


1 Answers

Add -Wno-direct-ivar-access to the Warning Flags under Build Settings.

like image 89
Etan Avatar answered Jan 22 '23 07:01

Etan