ios - dismissViewControllerAnimated not being called on iPhone -


i have following code trying show pdf preview. words on ipad when trying on iphone dosnt work.

qlpreviewcontroller* preview = [[qlpreviewcontroller alloc] init];         preview.datasource = self;         [self dismissviewcontrolleranimated:yes completion:^{             [self presentviewcontroller:preview animated:yes completion:nil];         }]; 

the thread on iphone never makes line

[self presentviewcontroller:preview animated:yes completion:nil]; 

but works fine on ipad.. not sure at. appreaciated.

to access instances/variables (that declared outside of block) inside block, need declare instances/variables this: __block type identifier = initial value (optional) e.g, in case use __block qlpreviewcontroller* preview = [[qlpreviewcontroller alloc] init];


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -