ios - QLPreviewController nav bar blocks PDF content -


i'm working on project displays pdf using qlpreviewcontroller 2 different views. 1 view pushes qlpreviewcontroller onto base navigation, , other 1 modal view brings qlpreviewcontroller in modal.

i had issues when set push including setting nav bar opacity , nav bar blocking pdf. able solve both issues subclassing qlpreviewcontroller:

#import "custompreviewcontroller.h"  @interface custompreviewcontroller ()  @end  @implementation custompreviewcontroller  -(id) init {     self = [super init];     if(self){         // init     } return self; }  - (void) viewdidappear:(bool)animated {     [super viewdidappear:animated];     // set translucency of navigation bar     self.navigationcontroller.navigationbar.translucent = no;     // nav bar not overlap content     self.edgesforextendedlayout = uirectedgenone;     self.automaticallyadjustsscrollviewinsets = yes; }  @end 

however, need view same pdf different flow in app. design need modal pop uitableview, either push or modal tableview pdf in qlpreviewcontroller. when use same push animation delay , fracturing of animation , glitchy toolbar @ top. (see post here). when use modal animates smoothly uinavigationbar hiding top of pdf , covering page number. similar nav bar symptoms push issues in linked post. have tried solution proposed there, attempting hide nav bar of initial modal , preview controller, no avail.

this might apple bug/issue if has discovered usable workaround suggestions welcome.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -