UIActionSheet and UIActionSheetDelegate is deprecated in iOS 8. To create and manage action sheets in iOS 8 and later, instead use UIAlertController with a preferredStyle of UIAlertControllerStyleActionSheet. The UIActionSheetDelegate protocol defines the methods a delegate of a UIActionSheet object should implement. The delegate implements the button actions and any other custom behavior.
Questions tagged [uiactionsheetdelegate]
14 questions
41
votes
10 answers
Change Text Color of Items in UIActionSheet - iOS 8
I had been using following code to change text color of items which I add in UIActionSheet.:
- (void)willPresentActionSheet:(UIActionSheet *)actionSheet {
for (UIView *subview in actionSheet.subviews) {
if ([subview…

Salman Zaidi
- 9,342
- 12
- 44
- 61
3
votes
1 answer
UIActionsheet in Ios8
I have implemented actionsheet in my project having deploy target ios7 and less actionsheet works fine.
UIActionsheet in Ios8 not working same as other version of Ios.
How i make it working properly?
Thanks

Shubham Narang
- 514
- 2
- 14
1
vote
2 answers
UIActionSheetdelegate not getting subviews
In my iOS 8 application I am using UIActionSheet. I tried to change the color of the button title in willPresentActionSheet delegate method, but it is not recognizing buttons as its subview.
I constructed UIActionSheet like this:
UIActionSheet…

Rashad
- 11,057
- 4
- 45
- 73
1
vote
1 answer
Handling events on UIActionSheet in SWIFT
I am working on creating UIActionSheet for iOS8 in SWIFT. I have a working code, but I am stuck with the handling of button clicks for the action sheet.
My current code is:
var actionSheet = UIAlertController(title: "Publish this Image ?",…
user3789705
0
votes
4 answers
How can I insert images next to text inside a UIActionSheet?
I was trying to create a UIActionSheet in a Xamarin.ios app, where there is an image and text in each row. Is there a way we could do that?
I've followed the sample provided by Alanc Liu in this link:
For "actionSheetAlert", what's after (action)…

Stout
- 463
- 8
- 19
0
votes
1 answer
UICustomActionSheet not calling delegate method to handle events
i am using this example in my code. And it is working just fine for now but when i tap on a button it did not respond or call any method. here is my code:
UICustomActionSheet* customActionSheet = [[UICustomActionSheet alloc] initWithTitle:nil…

Vix Hunk
- 303
- 4
- 17
0
votes
2 answers
UIActionsheet delegate clickedButtonAtIndex never gets called
I am trying to create a function which creates an actionsheet when called from different viewcontrollers.
The issue is that although the uiaction sheet gets created, I can't seem to perform any of the designated click actions. Infact the delegate…

Simran Bakshi
- 51
- 2
- 7
0
votes
0 answers
UiActionSheet bug in iOS
i wanted to change buttons color in action sheet so i wrote this code
- (void)willPresentActionSheet:(UIActionSheet *)actionSheet {
for (UIView *_currentView in actionSheet.subviews) {
if ([_currentView isKindOfClass:[UIButton class]])…

user3045517
- 61
- 1
- 8
0
votes
2 answers
Is it possible somehow to add a thumbnail icn to action sheet?
I want to create action sheet with two buttons, but i want the buttons to have thumbnail icons, is that possible? any other solutions? maybe there is a way to customize the action sheet buttons.. like to design them separately?
this is my current…

nick shmick
- 905
- 1
- 9
- 25
0
votes
1 answer
iOS UIActionSheet callback works in simulator but not on phone
I have an action sheet that when one of it's options are clicked successfully calls clickedButtonAtIndex when run in the simulator but when testing on an iPhone (5s in Xcode 6) it doesn't reach the callback.
The header...
@protocol…

kreek
- 8,774
- 8
- 44
- 69
0
votes
2 answers
Action sheet cancel button not cancelling action sheet
I am passing an array(which is coming from database) to action sheet. I have added cancel button but it is not cancelling.It is showing error array beyond bounds. Here is my code:
UIActionSheet *actionSheet = [[UIActionSheet…

Amit Limje
- 41
- 3
0
votes
2 answers
UIActionSheet responder not called
This is my first post on stackoverflow, so please forgive me if I make some mistakes.
I'm a relatively new app designer, and I have been working on a new app that I'm hoping to publish soon. I have recently run into an issue. I am not able to use…

JuniorGenius
- 75
- 8
-1
votes
1 answer
Handling UIActionSheet
In my application i should have a common UINavigationBar to hold with 3 UIBarButton items with its actions. So, instead of writting code in every ViewControllers, i have decided to create on BaseViewController which can be subclass to my application…

Praveenkumar
- 24,084
- 23
- 95
- 173
-3
votes
1 answer
local declaration of 'myViewController' hides instance veriable
In the action sheet delegate method im modaling to another view based on the button index, this is the method:
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
if (buttonIndex == 0) {
…

nick shmick
- 905
- 1
- 9
- 25