ios - Retrieve images from parse before UITableVIew has loaded? -


In everything except look after a tense delay images in cell works fine. The table is too ugly to show a blank image I think that some time around 0.3 seconds after View Loading ... the

I load only images since parsing show The tableView can be done (why not by the cache?). Or maybe I can hold the launch screen for a long time ..? Table initial view weave app

queryForTable

  - (PFQuery *) queryForTable {PFQuery * query = [PFQuery queryWithClassName: self.parseClassName ]; // If any object is not loaded in memory, then we should first check the // cache to fill the table and then later against a query / network. If ([self.objects count] == ​​0) {query.cachePolicy = kPFCachePolicyCacheThenNetwork; } [Query order BIACC: @ "name"]; Return query; }  

cellForRowAtIndexPath

  - (UITableViewCell *) tableView: (UITableView *) tableView cellForRowAtIndexPath: (NSIndexPath *) indexPath object : (PFObject *) objects {static NSString * simpleTableIdentifier = @ "cell"; UITableViewCell * cell = [TablesView decomputer reusableWelcome Identifier: SimpleTable Identifier]; If (cell == null) {cell = [[UITableViewCell alloc] initWithStyle: UITableViewCellStyleDefault reuseIdentifier: simpleTableIdentifier]; } // loading iconPFFile * thumbnail = [Object objectForrequiry: Self imzeci]; PFImageView * thumbnailImageView = (PFImageView *) [Cell ViewViewGuet: 100]; ThumbnailImageView.file = Thumbnail; ThumbnailImageView.image = [UIImage image named: @ "placeholder.jpg"]; [Thumbnail image load these backgrounds: ^ (UIImage * image, NSError * error) {if (error!) {}}]; // Cell Selktekst Labelktekst = [object Objektforeki: Swektekstki]; Return cell; }  

thanks in advance :)

there is a loss of a while This is a standard process to load images after and there are many world-class apps (try scrolling in anytime from Facebook or Twitter app). The work around it would be quite messy in logical and programmatic terms.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -