Search code examples
iosobjective-ccocoa-touchios7uiactionsheet

changing UIActionSheetStyle makes no difference in iOS7?


Is this some bug in iOS7? I took screenshots with

UIActionSheetStyleBlackOpaque,
UIActionSheetStyleBlackTranslucent,
UIActionSheetStyleAutomatic,
UIActionSheetStyleDefault.

It's all the same.

UIActionSheet *action = [[UIActionSheet alloc] initWithTitle:@"Title" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"OK" otherButtonTitles:nil, nil];
[action setActionSheetStyle:UIActionSheetStyleBlackTranslucent]; // changing enumerable here shows exactly same result
[action showInView:_controlsView];

Solution

  • As per this UIActionSheetStyle constants are unused in iOS 7.