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

arnieterm

macrumors regular
Original poster
Aug 28, 2008
201
0
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
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
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?
 

arnieterm

macrumors regular
Original poster
Aug 28, 2008
201
0
Because if is the latter simply asking the button for it's target and action and calling would be easier.
Yes, I want to do this thing but how that I don't know
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.