Notification gone when click on any option in Action sheet
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 :
- Take one UIButton and open action sheet with 2/3 option.
- on that UIButton click event , open notification after 1/2 second. ex: [self performSelector:@selector(showNotification:) withObject:nil afterDelay:1];
- 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.
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].