Working on redoing listing and capturing multiple item pictures

This commit is contained in:
Okechi Onyeje 2016-06-16 04:34:22 -04:00
parent 6536330663
commit 775e41690c
2 changed files with 19 additions and 2 deletions

View File

@ -76,15 +76,23 @@ class ListingPreviewViewController: UIViewController {
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
if(segue.identifier == "EditListingSegue"){
let vc = (segue.destinationViewController as? ItemImagePickerViewController)!
vc.itemName.text? = self.itemTitle.text
vc.itemPrice.text? = self.itemPrice.text
vc.itemDescription.text? = self.itemDescription.text
vc.possibleItemImageMain = self.itemPicture
}
*/
}
}
@ -169,10 +177,14 @@ extension ListingPreviewViewController {
//post to facebook
if(self.networksDictionary["facebook"]!){
//need to reverse process and upload to firebase last so that all network listing id's can be saved to firebase for notification access.
self.lastListingKey = newListingRef.key
self.graphManager.makePOSTResquest("me/feed", params: parameters)
//let parameters: Dictionary<String, AnyObject> = ["":""]
}
@ -195,6 +207,10 @@ extension ListingPreviewViewController {
}
@IBAction func editListing(sender: AnyObject) {
self.performSegueWithIdentifier("EditListingSegue", sender: self)
}
@ -300,3 +316,4 @@ extension ListingPreviewViewController: UICollectionViewDataSource {
}
}