ios - UIDocumentInteractionController intermittent crashes -


got weird ios issue here...

i have app opens pdfs on ipad. (i've got deal ipads in environment i'm in)

the weird thing is, when try load file (the documentinteractioncontroller opens, , choose "open in ibooks"), app crash. if go in , select same options, works fine minute later.

if wait 10 minutes, i'm started - app crash first time, second , subsequent times works fine.

this tough debug since interaction ibooks needs run on ipad, can't run on simulator.

i encountered same issue other day, , because wasn't referencing uidocumentinteractioncontroller. add property in @interface:

@property (nonatomic, strong) uidocumentinteractioncontroller *documentcontroller; 

and assign controller property before present it.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -