I create UIButton on my StoryBoard, and create Outlet for this UIbutton, then for Touch Up Inside I create some method. In standard button have method aka TouchesEnded
Maybe that is stupid questions, I new in Xcode but I ask How I can switch on this button on TouchesBegan?
Thx
create your IBAction
for your UIButton
and connect your button to IBAction
. for when you tapped on button then your method is call.
Such like method,
-(IBAction)butttonTaped:(UIButton *) Sender
{
// connect to your button
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.