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 02-04-2011, 02:08 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 1
tnahsus is on a distinguished road
Default Controlling memory spikes when loading local (Office and iWork) files in UIWebView

Hello all,
My first post here, had posted this question on stackoverflow as well but haven't got any replies. Here goes.

I am using UIWebView to open local files of Office (ppt, xls, doc) and iWork (numbers, pages, key) formats, all less than 5 MB in size. To load them, I simply do:
Code:
NSURL *url = [NSURL fileURLWithPath:filepath];      
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[myWebView loadRequest:requestObj];
When loading some of these files in web view (especially ppts with large number of images in them), the memory usage shoots up to almost 35 MB causing my app to crash. I have looked around various iOS forums but haven't really found a solution. Does using loadData:MIMEType:textEncodingName:baseURL: help in keeping the memory footprint down or are there any other tricks to using UIWebView?

Thank you.
tnahsus is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone sdk4, memory crash, uiwebview

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: 371
14 members and 357 guests
7twenty7, blasterbr, Clouds, dre, EvilElf, jeroenkeij, jimmyon122, Mah6447, Morrisone, n00b, pungs, Sami Gh, stanny, toon4413
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,121
Posts: 402,900
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

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