Does not seem to automatically add the code to be how to write
Reply:
Write IBAction types of functions chant before hanging the first to buy the book Touch Up Inside events do take a look
Reply:
[Btn addTarget: self action: @ selector (function) forControlEvents: UIControlEventTouchUpInside];
Reply:
With the way the code is, when defining Button button, add a trigger event:
Such as: UIButton * button = [UIButton buttonWithType: UIButtonTypeCustomNormal];
[Button addTarget: self selector: @ selctor (ButtonClick :) forControlEvents: UIControlEventTouchUpInOutSide];
buttonClick: (refer to the trigger time), the latter UIControlEventTouchUpInOutSide (click button after the trigger finger)
2 Using the control method: Select the button controls in Interface Bulder, and then in the right box to find a property like the above trigger time UIControlTouchUpInOutSide, then click on the tow line to the method of File's OWer in connection triggered.
Reply:
LS positive solutions
Reply:
Learn
Reply:
With the way the code is, when defining Button button, add a trigger event:
Such as: UIButton * button = [UIButton buttonWithType: UIButtonTypeCustomNormal];
[Button addTarget: self selector: @ selctor (ButtonClick :) forControlEvents: UIControlEventTouchUpInOutSide];
buttonClick: (refer to the trigger time), the latter UIControlEventTouchUpInOutSide (click button after the trigger finger)
2 Using the control method: Select the button controls in Interface Bulder, and then in the right box to find a property like the above trigger time UIControlTouchUpInOutSide, then click on the tow line to the method of File's OWer in connection triggered.
No comments:
Post a Comment