Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-06-2011, 06:22 AM   #1 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 5
mrpmorris is on a distinguished road
Default Displaying a PDF

I have the following code (C# / MonoTouch) which displays the first page of a PDF. It seems though that there is some detail missing, because as the controller is popped off the stack I get a fatal error in unmanaged code (pasted below the source).

This is how I add the controller to the stack, the problem seems to happen quite randomly.

var url = NSUrl.FromFilename(fileName);
var pdfViewController = new PdfViewController(url);
NavigationController.PushViewController(pdfViewCon troller, true);

Click Here for the source
Click Here for the error

The MonoTouch forums are next to useless so I thought I'd ask in here seeing as the code is so basic. I hope that's okay I am happy to read ObjC responses, I should be able to translate.
mrpmorris is offline   Reply With Quote
Reply

Bookmarks

Tags
pdf

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 367
13 members and 354 guests
condor304, dansparrow, dre, ilmman, LezB44, michelle, Nobbsy, Objective Zero, samdanielblr, Sami Gh, shagor012, thephotographer, tinamm64
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,119
Posts: 402,896
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:41 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0