Objective c 自动为(@property)UIButton添加方法

Objective c 自动为(@property)UIButton添加方法,objective-c,uibutton,Objective C,Uibutton,我在头文件中声明了一个UIButton @property (nonatomic, retain) UIButton *fooButton; 在实现文件中,我可以找到如下保留方法。我是说xcode帮助输入完成 - (void)removeFooButton:(NSSet *)objects 我还发现RemoveFoobuttonationIndex:NSIndexSet*索引等等。 实施这些方法的目的是什么? 谢谢。从方法名称看不清楚吗?没错,我也可以找到-voidSetFoobuton:U

我在头文件中声明了一个UIButton

@property (nonatomic, retain) UIButton *fooButton;
在实现文件中,我可以找到如下保留方法。我是说xcode帮助输入完成

- (void)removeFooButton:(NSSet *)objects
我还发现RemoveFoobuttonationIndex:NSIndexSet*索引等等。 实施这些方法的目的是什么?
谢谢。

从方法名称看不清楚吗?没错,我也可以找到-voidSetFoobuton:UIButton*Foobuton。大约有10个…:方法setfoobutton是默认的setter,方法foobutton是您创建的foobutton的默认getter。