Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

arnieterm

macrumors regular
Original poster
In order to do press a UIButton programmatically should we use setTouchInside? I have tried it but it gives me warning. I have declared the UIbutton in the header file
Thanks
 
What are you trying to achieve? The visual effect that the button was pressed or simply for the action that the button press would trigger happens.

Because if is the latter simply asking the button for it's target and action and calling would be easier.

If it's the former why? Do you not think that the user will be confused if it looks like they pressed a button when they did not?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.