Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with a side menu controller #1

Closed
tdunham02 opened this issue Oct 8, 2014 · 6 comments
Closed

Issues with a side menu controller #1

tdunham02 opened this issue Oct 8, 2014 · 6 comments
Assignees

Comments

@tdunham02
Copy link

Hi, there's an issue with the control is you try to call it from a side menu or "drawer".

I'm using MFSideMenu and when I call SCLAlertView from the open side menu, the shadow only covers the side view controller's view and the actual alert is displayed off-center.

Hopefully there's an easy way to add in the ability to display the alert in the middle of the window as opposed to the view controller's view. Let me know if I can be of help. I didn't have a lot of time to work on it today, but will check it out another day!

It's an awesome replacement for UIAlertView, I would love to use it!!

@dogo
Copy link
Owner

dogo commented Oct 9, 2014

Hi @tdunham02

I tested with the MFSideMenu examples and those are my results :

http://imagizer.imageshack.us/v2/280x200q90/674/4EXkdL.png

http://imagizer.imageshack.us/v2/280x200q90/631/YikIVD.png

Both examples seem good to me, please give me more information about the issue or a code sample

You also can make a PR with improvements or bug fixes

Cheers,

@tdunham02
Copy link
Author

Hi, thanks for the quick reply! I was hoping we could have it cover the entire screen no matter what. In that case, it only covers the side view controller.

@dogo
Copy link
Owner

dogo commented Oct 10, 2014

Try this,

    SCLAlertView *alert = [[SCLAlertView alloc] init];
    UIViewController *rootController = [[[UIApplication sharedApplication] keyWindow] rootViewController];
    [alert showSuccess:rootController title:@"My Title" subTitle:@"My SubTitle" closeButtonTitle:@"OK" duration:0.0f];

@tdunham02
Copy link
Author

Perfect, that works great! A great option to have.

Thanks!

@dogo dogo self-assigned this Oct 10, 2014
@dogo
Copy link
Owner

dogo commented Oct 10, 2014

Great :D
Closing the issue okay ?

@dogo dogo closed this as completed Oct 10, 2014
@tdunham02
Copy link
Author

Perfect, thanks again!

dogo pushed a commit that referenced this issue Oct 18, 2014
dogo pushed a commit that referenced this issue Dec 29, 2015
dogo pushed a commit that referenced this issue Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants