iphone - Programmatically fire button click event? -


is there way programmatically fire button click event? have button placed there in uiview, , in particular scenario want click button via code, not manually user. possible in ios development? please provide suggestions , guide me how that.

thanks.

sort of ken's answer, more flexible it'll keep track of buttons actual actions if change them or add more one.

[button sendactionsforcontrolevents:uicontroleventtouchupinside]; 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -