librelist archives

« back to archive

Loading a lot of messages at once?

Loading a lot of messages at once?

From:
Isa Ranjha
Date:
2013-04-12 @ 14:37
Hello,

So basically, when I was testing my app with an email address that has a 
lot of messages in it's inbox, the app, when I started it up, took a long 
time to load the messages, which is perfectly understandable.

But what I want to know is, is there any way I could do this in the 
background? The problem I am seeing here is that the WHOLE ENTIRE UI is 
frozen when loading the messages. Which could be on line for App Store 
rejection and just frustrating to users!

Any ideas?

Re: [mailcore] Loading a lot of messages at once?

From:
Matt Ronge
Date:
2013-04-15 @ 14:32
Hi,

Sounds like you are loading message on the UI thread. Make sure you use 
NSOperationQueue and load any messages on a background thread.
--
Matt Ronge

iPhone & iPad App Consultant
Central Atomics Inc.
http://www.centralatomics.com








On Apr 12, 2013, at 9:37 AM, Isa Ranjha <isaranjha@me.com> wrote:

> Hello,
> 
> So basically, when I was testing my app with an email address that has a
lot of messages in it's inbox, the app, when I started it up, took a long 
time to load the messages, which is perfectly understandable.
> 
> But what I want to know is, is there any way I could do this in the 
background? The problem I am seeing here is that the WHOLE ENTIRE UI is 
frozen when loading the messages. Which could be on line for App Store 
rejection and just frustrating to users!
> 
> Any ideas?