AGPushNote icon indicating copy to clipboard operation
AGPushNote copied to clipboard

activation of the PushNote makes keyboard disappear

Open roiholtzman opened this issue 10 years ago • 5 comments

I have a view that the keyboard appears in. But when the PushNote appears on top, the keyboard disappears. It comes back when the PushNote disappears.

(BTW- this is a really nice project)

roiholtzman avatar Jul 14 '14 09:07 roiholtzman

My guess is that it has something to do with setting the app delegate as UIWindowLevelStatusBar. It happens on the .m file on line #128 (You can see it here: https://github.com/avielg/AGPushNote/blob/master/AGPushNote/AGPushNoteView.m#L128).

I am doing this to make the view overlap with the status bar.... If you don't need this functionality you can try removing this line, and it might solve the keyboard issue (But then you might want to make the whole view 20 points larger in height...).

Also thanks for the compliments (:

avielg avatar Jul 15 '14 01:07 avielg

Thanks. It helped :) But why did you say I would want to make the view 20 points larger in height? it seems it's in the same height as before..

roiholtzman avatar Jul 15 '14 09:07 roiholtzman

Cuz the status bar information might overlap the AGPushNote view and it might look bad… If it looks good than nothing to worry about… (:

avielg avatar Jul 15 '14 13:07 avielg

Bumping for a better solution.

sheharyarn avatar Sep 06 '14 11:09 sheharyarn

Replace "UIWindowLevelStatusBar" mentioned in the above comments with "UIWindowLevelAlert", works perfectly without compromising on statusbar overlap or keyboard disappearance.

T0xicMatter avatar Apr 28 '15 20:04 T0xicMatter