codepath / ios_guides

Comprehensive open-source iOS guides

Home Page:http://guides.codepath.com/ios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parse Guide Enhancements

nickai opened this issue · comments

Completed:

  • Downloading an image from Parse and displaying in an PFImageView
  • Add a section on explaining how to add keys
  • Refactor getting started to put less emphasis on Parse.com and talk about both options (Parse.com vs Parse Server)
  • UserMedia renamed to Post
  • Link to Cocoa Pods and Swift Guide (Trim explanations in guide)
  • Remove screenshots of code
  • Setting up your own Parse dashboard - Added a sub-section on this in guide
  • Test push notification instructions - Added a section for this in guide
  • Show Data schema
  • Parse Architecture Diagram

@aamays - Just had a student ask about how to convert a PFFile to an image that can be displayed in their TableView. I think we should add a section on ParseUI and using PFImageView.

import UIKit
import Parse
import ParseUI

class InstagramPostTableViewCell: UITableViewCell {

    @IBOutlet weak var photoView: PFImageView!

    var instagramPost: PFObject! {
        didSet {
            self.photoView.file = instagramPost["image"] as? PFFile
            self.photoView.loadInBackground()
        }
    }
}

We need to vet Parse files..there is an adapter for Mongo called GridStore
and has some file size limitations....there is also an Amazon s3 adapter
that could be used too..
On Feb 17, 2016 3:26 PM, "Nick Aiwazian" notifications@github.com wrote:

@aamays https://github.com/aamays - Just had a student ask about how to
convert a PFFile to an image that can be displayed in their TableView. I
think we should add a section on ParseUI and using PFImageView.

import UIKitimport Parseimport ParseUI
class InstagramPostTableViewCell: UITableViewCell {

@IBOutlet weak var photoView: PFImageView!

var instagramPost: PFObject! {
    didSet {
        self.photoView.file = instagramPost["image"] as? PFFile
        self.photoView.loadInBackground()
    }
}

}


Reply to this email directly or view it on GitHub
#38 (comment).

@aamays - Looks like there might be an issue with push notifications with Parse Server. (Thanks @rogerhu for the link!)

@aamays - Do you have some time to close out the remaining items for the Parse guide? A lot of the schools will be hitting the implementation phase of the group project soon so it will be great to have all the support materials in place.

FWIW -- Parse dashboard is still very raw, and has limited functionality (no push testing). The mLab data viewer or Robomongo probably is sufficient to use.

Hi @nickai,

Sure let me wrap it up this weekend.

Thanks!
Amay