diff --git a/Vendoo.xcworkspace/xcuserdata/okechi.xcuserdatad/UserInterfaceState.xcuserstate b/Vendoo.xcworkspace/xcuserdata/okechi.xcuserdatad/UserInterfaceState.xcuserstate index ad8885e..f7d4c09 100644 Binary files a/Vendoo.xcworkspace/xcuserdata/okechi.xcuserdatad/UserInterfaceState.xcuserstate and b/Vendoo.xcworkspace/xcuserdata/okechi.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Vendoo/ListingPreviewViewController.swift b/Vendoo/ListingPreviewViewController.swift index d78be40..ddf7c20 100644 --- a/Vendoo/ListingPreviewViewController.swift +++ b/Vendoo/ListingPreviewViewController.swift @@ -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,9 +177,13 @@ 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 = ["":""] + } @@ -195,6 +207,10 @@ extension ListingPreviewViewController { } + @IBAction func editListing(sender: AnyObject) { + + self.performSegueWithIdentifier("EditListingSegue", sender: self) + } @@ -300,3 +316,4 @@ extension ListingPreviewViewController: UICollectionViewDataSource { } } +