What is the meaning of the console message: "snarfed from ivar layout ..."?

I have a console message that seems to be triggered by explicitly related events.

The message says:

snarfed from ivar layout: [propertyName] = [constantString]

Where [propertyName]is the name of the property to which I set the value of the string constant [constantString].

What causes this message and what does it mean?

+5
source share
3 answers

. , , , , VoiceOver. , , , , , .

, , Apple Framework ivars , , , , , , .

, . , , , ivar. getter . , , . stacktrace, , Apple ivar, . ( ivar, getter ivar .)

( ). , , . getter . Nib. , :

class CustomTableViewCell:UITableViewCell
{
    NSString *s ; 
} 
@property(nonatomic,retain) NSString *s ; 

:

@synthesize s ; 
-(NSString *)s 
{
    if( !s ) 
        return self.reuseIdentifer ; 
    return s ; 
}

self.reuseIdentifier return, Accessibility. , Apple, , -, accessibilityLabel . - "_accessibilityRetrieveTableViewIvarsText".

, , Accessibility, accessibilityLabel.

3 :

1) accessibilityLabel Nib. Apple , . , , .

2) CustomTableViewCell , Nib. , Apple Framework ivars, , "snarf". , , Apple .

3) , , ivar . , , . :

class CustomTableViewCell:UITableViewCell
{
    @private
        NSString *_s ; 
}  
@property(nonatomic,retain) NSString *s ; 

:

@synthesize s = _s ; 
-(NSString *)s  
{
    if( !_s ) 
        return self.reuseIdentifer ; 
    return _s ; 
}

, nil , Apple ivar, , , "snarfed". , # 2.

+7

"snarfed from ivar" accessibilityLabel. , , ​​ UITableViewCell.

+3

. , , -, UIView .

, , :

:

- (BOOL)isAccessibilityElement
{
    return NO;
}

:

, , .

+2

All Articles