I've noticed in my app that my cancel button is hard to tap, it seem like the hit area is not in the center.
How do I fix this ?
Heres my code...
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@""
delegate:dg
cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil
otherButtonTitles: @"Help Pages", @"Tutorial",
@"Feedback / Questions ", @"Facebook Group", @"About", nil];
actionSheet.actionSheetStyle = UIActionSheetStyleBlackOpaque;
[actionSheet setTag:CommonUIActionSheetHelp];
[actionSheet showInView:vw];
[actionSheet release];
I think your problem lies in the [actionSheet showInView:vw];
, perhaps you are using tabBarController/toolBar in you application(at bottom), this error occurs at that time.
you should use either showFromToolbar
or showFromTabBar
as per your design. If your design is different then please mention it.(if no tabBar/toolBar there).
Thanks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With