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

Nekbeth

macrumors regular
Original poster
Feb 20, 2011
101
0
Vatican City
Hi, I want to select the first button index of an actionsheet automatically. Meaning that I want the button to be selected as soon as the actionsheet appears. (no option)

I've try many way, but I can't make it work.

Any suggestion are appreciated. Thank you
 
Thanks for the response jnoxx. Yes, what you say is true and it makes sense not to use an action sheet for the purpose I described. But because Im using an external API (Sharekit) that uses action sheets to present a Tweeter, among other services.. (I only want to use tweeter), I'm force to use that actions sheet. Have you tried Sharekit before?

The action sheet in there is very complex (for a beginner like me :), it uses many classes and variables in order to show that tweeter button in the action sheet. That is why I can't just take the method and apply it to my controller.

I was able to send a tweet automatically if the textview for tweeter appears, without me having to press "sent tweet".

But now, I got stuck with this actions sheet. I'm trying to find a way to make that first button pressed as soon as the action sheet loads.


My goal is to press a button a send a tweet. (retrieving the information is already done).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.