Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Odd artifact next to UIActionSheet in iOS7

Tags:

ios

ios7

My iOS7 app has an odd visual bug in a UIActionSheet. It is shown below. Any thoughts?

enter image description here

Code:

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:@"Done" destructiveButtonTitle:nil otherButtonTitles:nil];
[actionSheet showInView:self.view];
like image 393
user1007895 Avatar asked Sep 30 '13 18:09

user1007895


1 Answers

Looks like an iOS7 bug to me in drawing of the button layer, can't really think of a solution but aside trying to work out the factors that have caused that to happen

Maybe try a different approach and see if you have some success?

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:nil];
[actionSheet addButtonWithTitle:@"Done"];
[actionSheet showInView:self.view];

Or maybe set it under otherButtonTitles?

It's a strange one but if you can find the cause it might be worth submitting the bug report to apple

like image 172
GroovyCarrot Avatar answered Nov 03 '22 17:11

GroovyCarrot