AGPushNote icon indicating copy to clipboard operation
AGPushNote copied to clipboard

super.view hijacking click event when click on push view button.

Open Kernelzero opened this issue 8 years ago • 0 comments

I made close button on push view of right side.

just ...that button for close push view but did not work when click that button because super view navigation bar button is firstly.

so I was add code here

[APP.window addSubview:PUSH_VIEW]; // pre-written code [APP.window bringSubviewToFront:PUSH_VIEW]; //additional code

but same issue occured.

I test this few times, I know that move other page view until did not close push view. so... It solution maybe. push view bringFrontAlways. but I dont know that how

finaly I found this! when U have a agpushnote, If your app moved other viewController then AGPushNote does not close

and solution here.

-(void) viewWillAppear:(BOOL)animated{ NSArray * subviews = [[[[UIApplication sharedApplication] delegate ] window] subviews]; subviews = [[[[UIApplication sharedApplication] delegate ] window] subviews]; for(UIView *view in subviews){ if([view isKindOfClass:[AGPushNoteView class]]){ [[[[UIApplication sharedApplication] delegate ] window] bringSubviewToFront:view]; } } }

Kernelzero avatar Jun 22 '16 07:06 Kernelzero