I learned some time, and now you can also generate a button directly with the code or add xib, and then the associated code, but still have this problem.
Like similar VC, each space has an ID.
Later use can be called a pointer to it.
Is there such a thing? Or his work is like.
Reply:
UIButton iOS also on UIView subclass. There tag attributes, integer values. ViewWithTag method can be called to find its superview.
Reply:
You put BUTTON directly declared as member variables. . .
In the. m file which can be accessed directly and change its properties
. h
uibutton * a;
. m
[A setimage. . . . . . 】
Statement IBOUT is to facilitate visualization trying
Declare member variables BUTTON, more flexible
Reply:
Thanks to the second floor, completely understand.
Reply:
In fact, it can be declared as IBOutlet associated control variables such as MFC association, and also to facilitate the operation
No comments:
Post a Comment