AFDropdownNotification icon indicating copy to clipboard operation
AFDropdownNotification copied to clipboard

Notification gone when click on any option in Action sheet

Open Hitarth2000 opened this issue 10 years ago • 1 comments

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 avatar Feb 03 '16 11:02 Hitarth2000

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].

Hitarth2000 avatar Mar 09 '16 09:03 Hitarth2000