Thursday, December 26, 2013

Ask a question about addsubView self. x and x problems

Ask a question about addsubView self. problems
x and x
. h in
UIImageView * imageViewBegin_;
@ Property (nonatomic, retain) UIImageView * imageViewBegin;
. m in
@ Synthesize imageViewBegin = imageViewBegin_;
Instantiate a class initialization
/ / isimageViewBegin_ = [ViewControllerFactory newImageView: imageViewBegin];
/ / The first method of increasing
[Self.view addSubview: imageViewBegin_];
/ / The second method for increasing
[Self.view addSubview: self.imageViewBegin];
Will the increase in these two methods which is better? And explain why?
Reply:
[Self.view addSubview: imageViewBegin_];
This is good, because less playing self. These characters, haha ​​

self.imageViewBegin call is property, the default method of execution set
Reply:
cited landlord sike200008 reply:
asked about addsubView self. problems
x and x
. h in
UIImageView * imageViewBegin_;
@ Property (nonatomic, retain) UIImageView * imageViewBegin;
. m in
@ Synthesize imageViewBegin = imageViewBegin_;
Instantiate a class initialization
/ / isi ......

The first method, better performance.
Reply:
Since it is in the self of the thing, of course, is a good
detoursThat property you have
not specifically defined for self use
Front
just like when you designate a secretary, responsible for outsiders looking to take moneyNow you take their money, but also to find the secretary looking for you to come up with the money, then secretary where you pick?

No comments:

Post a Comment