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

Fritzables

macrumors regular
Original poster
May 6, 2011
149
1
Brisbane AUSTRALIA
I am building my first iOS app, so still learning how things are done in this environment.

I am using IOS 5.1.1 and Xcode 4.3.3. The application uses Sortyboards.

The main screen contains a single button which when pressed will show a series of buttons in a UIActionSheet.

Based on what button the end-user selects, I would like this to link to an additional View Controller and show another view.

As the UIActionSheet is not a GUI Control that can be dragged from the Object library, it must be added using code.

The question is: How do I programmatically connect these buttons in the ActionSheet to a View Controller as if I was to do with a control-drag method?


Pete
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.