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

Notification gone when click on any option in Action sheet #19

Open
Hitarth2000 opened this issue Feb 3, 2016 · 1 comment
Open

Notification gone when click on any option in Action sheet #19

Hitarth2000 opened this issue Feb 3, 2016 · 1 comment

Comments

@Hitarth2000
Copy link

It is working fine almost in all screen but if action sheet open (with 2/3 option) in iphone during that time if Notification alert display on that screen. Till that its working fine. When i click on any option in action sheet, Notification gone from the existing screen. Is that any limitation ? please help me. due to only this issue i cant use this in my app. Please guide me.

Step to produce issue :

  1. Take one UIButton and open action sheet with 2/3 option.
  2. on that UIButton click event , open notification after 1/2 second. ex:
    [self performSelector:@selector(showNotification:) withObject:nil afterDelay:1];
  3. Now, Action sheet options and Notification both open in screen. When u click on any option from action sheet, notification gone and not fire any method of this..

Thanks in advance.

@Hitarth2000
Copy link
Author

I have resolved this. Instead of below line.
[[[UIApplication sharedApplication] keyWindow] addSubview:_notificationView];

you can use this line to resolved the issue.
MosaicAppDelegate * appd = (MosaicAppDelegate*) [[UIApplication sharedApplication]delegate];
[appd.window addSubview:_notificationView];

Also replace appd.window all places insted of [[UIApplication sharedApplication] keyWindow].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant