mirror of
https://bitbucket.org/vendoo/vendoo_v1.0.git
synced 2025-12-25 03:37:39 +00:00
Merge branch 'Rapid-Dev-Branch'
Conflicts: Vendoo.xcworkspace/xcuserdata/okechi.xcuserdatad/UserInterfaceState.xcuserstate Vendoo.xcworkspace/xcuserdata/okechi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist Vendoo/EbayWebServiceManager.swift
This commit is contained in:
commit
a3177e1cae
Binary file not shown.
@ -58,12 +58,633 @@
|
|||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Vendoo/HomeViewController.swift"
|
filePath = "Vendoo/HomeViewController.swift"
|
||||||
timestampString = "494847768.56364"
|
timestampString = "494906385.49118"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "182"
|
startingLineNumber = "183"
|
||||||
endingLineNumber = "182"
|
endingLineNumber = "183">
|
||||||
landmarkName = "listingHasEnded(_:ebayInfo:amazonInfo:etsyInfo:)"
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/CategoriesTableViewController.swift"
|
||||||
|
timestampString = "494897839.603291"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "579"
|
||||||
|
endingLineNumber = "579"
|
||||||
|
landmarkName = "navigateCategories()"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/CategoryPopUpController.swift"
|
||||||
|
timestampString = "494896911.735111"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "41"
|
||||||
|
endingLineNumber = "41"
|
||||||
|
landmarkName = "loadCategories(_:selectedCatCompletion:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494898754.02163"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "528"
|
||||||
|
endingLineNumber = "528"
|
||||||
|
landmarkName = "parser(_:foundCharacters:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494898754.02163"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "525"
|
||||||
|
endingLineNumber = "525"
|
||||||
|
landmarkName = "parser(_:foundCharacters:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494898361.943389"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "499"
|
||||||
|
endingLineNumber = "499"
|
||||||
|
landmarkName = "parser(_:foundCharacters:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494898365.099933"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "500"
|
||||||
|
endingLineNumber = "500"
|
||||||
|
landmarkName = "parser(_:foundCharacters:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/CategoryPopUpController.swift"
|
||||||
|
timestampString = "494899698.118321"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "66"
|
||||||
|
endingLineNumber = "66"
|
||||||
|
landmarkName = "loadCategories(_:selectedCatCompletion:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494899878.763302"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "524"
|
||||||
|
endingLineNumber = "524"
|
||||||
|
landmarkName = "parser(_:foundCharacters:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/HomeViewController.swift"
|
||||||
|
timestampString = "494902152.530491"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "87"
|
||||||
|
endingLineNumber = "87"
|
||||||
|
landmarkName = "viewDidLoad()"
|
||||||
|
landmarkType = "5">
|
||||||
|
<Locations>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.HomeViewController.(viewDidLoad () -> ()).(closure #1).(closure #1).(closure #1).(closure #1).(closure #1).(closure #2)"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/HomeViewController.swift"
|
||||||
|
timestampString = "494916337.033228"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "87"
|
||||||
|
endingLineNumber = "87"
|
||||||
|
offsetFromSymbolStart = "507">
|
||||||
|
</Location>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.HomeViewController.(viewDidLoad () -> ()).(closure #1).(closure #1).(closure #1).(closure #1).(closure #1).(closure #2)"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/HomeViewController.swift"
|
||||||
|
timestampString = "494916337.033348"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "87"
|
||||||
|
endingLineNumber = "87"
|
||||||
|
offsetFromSymbolStart = "7119">
|
||||||
|
</Location>
|
||||||
|
</Locations>
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/HomeViewController.swift"
|
||||||
|
timestampString = "494916335.990713"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "59"
|
||||||
|
endingLineNumber = "59"
|
||||||
|
landmarkName = "viewDidLoad()"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/ItemTableViewController.swift"
|
||||||
|
timestampString = "494936802.535184"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "107"
|
||||||
|
endingLineNumber = "107"
|
||||||
|
landmarkName = "prepareForSegue(_:sender:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "494935556.474664"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "167"
|
||||||
|
endingLineNumber = "167"
|
||||||
|
landmarkName = "prepareForSegue(_:sender:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "494937129.002183"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "51"
|
||||||
|
endingLineNumber = "51"
|
||||||
|
landmarkName = "ListingPreviewViewController"
|
||||||
|
landmarkType = "3">
|
||||||
|
<Locations>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.ListingPreviewViewController.(itemViewState in _9E3F545BDB11C848D37363B41A098E64).getter : Swift.String"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "494948750.517292"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "51"
|
||||||
|
endingLineNumber = "51"
|
||||||
|
offsetFromSymbolStart = "53">
|
||||||
|
</Location>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.ListingPreviewViewController.(itemViewState in _9E3F545BDB11C848D37363B41A098E64).setter : Swift.String"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "494948750.517403"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "51"
|
||||||
|
endingLineNumber = "51"
|
||||||
|
offsetFromSymbolStart = "95">
|
||||||
|
</Location>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.ListingPreviewViewController.init (coder : __ObjC.NSCoder) -> Swift.Optional<Vendoo.ListingPreviewViewController>"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "494948750.517583"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "51"
|
||||||
|
endingLineNumber = "51"
|
||||||
|
offsetFromSymbolStart = "1553">
|
||||||
|
</Location>
|
||||||
|
</Locations>
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494938310.11197"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "314"
|
||||||
|
endingLineNumber = "314"
|
||||||
|
landmarkName = "listItem(_:imageUrls:completion:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494938315.252535"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "315"
|
||||||
|
endingLineNumber = "315"
|
||||||
|
landmarkName = "listItem(_:imageUrls:completion:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494938497.537478"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "511"
|
||||||
|
endingLineNumber = "511"
|
||||||
|
landmarkName = "parser(_:foundCharacters:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494938501.239695"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "509"
|
||||||
|
endingLineNumber = "509"
|
||||||
|
landmarkName = "parser(_:foundCharacters:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494938502.495792"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "510"
|
||||||
|
endingLineNumber = "510"
|
||||||
|
landmarkName = "parser(_:foundCharacters:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/CategoriesTableViewController.swift"
|
||||||
|
timestampString = "494947668.680376"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "768"
|
||||||
|
endingLineNumber = "768"
|
||||||
|
landmarkName = "prepareForSegue(_:sender:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/NetworksTableViewController.swift"
|
||||||
|
timestampString = "494941205.231227"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "77"
|
||||||
|
endingLineNumber = "77"
|
||||||
|
landmarkName = "toggleMarketPlaceVisibitlity(_:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/NetworksTableViewController.swift"
|
||||||
|
timestampString = "494941253.143954"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "81"
|
||||||
|
endingLineNumber = "81"
|
||||||
|
landmarkName = "checkVisibility()"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/NetworksTableViewController.swift"
|
||||||
|
timestampString = "494941355.780817"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "177"
|
||||||
|
endingLineNumber = "177"
|
||||||
|
landmarkName = "tableView(_:cellForRowAtIndexPath:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "494941872.191463"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "384"
|
||||||
|
endingLineNumber = "384"
|
||||||
|
landmarkName = "publishItem(_:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "494941981.555508"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "402"
|
||||||
|
endingLineNumber = "402"
|
||||||
|
landmarkName = "publishItem(_:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
<Locations>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.ListingPreviewViewController.(publishItem (Swift.AnyObject) -> ()).(closure #2)"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "494948750.521049"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "402"
|
||||||
|
endingLineNumber = "402"
|
||||||
|
offsetFromSymbolStart = "4015">
|
||||||
|
</Location>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.ListingPreviewViewController.(publishItem (Swift.AnyObject) -> ()).(closure #2).(closure #1)"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "494948750.521188"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "405"
|
||||||
|
endingLineNumber = "405"
|
||||||
|
offsetFromSymbolStart = "20">
|
||||||
|
</Location>
|
||||||
|
</Locations>
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "494942021.796377"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "403"
|
||||||
|
endingLineNumber = "403"
|
||||||
|
landmarkName = "publishItem(_:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "494942034.726609"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "407"
|
||||||
|
endingLineNumber = "407"
|
||||||
|
landmarkName = "publishItem(_:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
<Locations>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.ListingPreviewViewController.publishItem (Swift.AnyObject) -> ()"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "494948750.522437"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "409"
|
||||||
|
endingLineNumber = "409"
|
||||||
|
offsetFromSymbolStart = "61703">
|
||||||
|
</Location>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.ListingPreviewViewController.(publishItem (Swift.AnyObject) -> ()).(closure #2)"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "494948750.522547"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "409"
|
||||||
|
endingLineNumber = "409"
|
||||||
|
offsetFromSymbolStart = "5522">
|
||||||
|
</Location>
|
||||||
|
</Locations>
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/ListingPreviewViewController.swift"
|
||||||
|
timestampString = "494942036.742589"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "412"
|
||||||
|
endingLineNumber = "412"
|
||||||
|
landmarkName = "publishItem(_:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494944875.724562"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "246"
|
||||||
|
endingLineNumber = "246"
|
||||||
|
landmarkName = "listItem(_:imageUrls:completion:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494944938.299032"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "254"
|
||||||
|
endingLineNumber = "254"
|
||||||
|
landmarkName = "listItem(_:imageUrls:completion:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494945222.220989"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "284"
|
||||||
|
endingLineNumber = "284"
|
||||||
|
landmarkName = "listItem(_:imageUrls:completion:)"
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
|
|||||||
@ -129,6 +129,7 @@ class CategoriesTableViewController: UIViewController, UITableViewDelegate, UITa
|
|||||||
|
|
||||||
|
|
||||||
dispatch_async(dispatch_get_main_queue(), {
|
dispatch_async(dispatch_get_main_queue(), {
|
||||||
|
|
||||||
cell.categoryName.text = self.categories[indexPath.row]
|
cell.categoryName.text = self.categories[indexPath.row]
|
||||||
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 3, inSection: 0))?.hidden = true //facebook
|
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 3, inSection: 0))?.hidden = true //facebook
|
||||||
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 2, inSection: 0))?.hidden = true //etsy
|
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 2, inSection: 0))?.hidden = true //etsy
|
||||||
@ -693,9 +694,18 @@ class CategoriesTableViewController: UIViewController, UITableViewDelegate, UITa
|
|||||||
}
|
}
|
||||||
|
|
||||||
let cell: CategoryCell! = tableView.cellForRowAtIndexPath(indexPath) as! CategoryCell//tableView.dequeueReusableCellWithIdentifier("CategoryCell", forIndexPath: indexPath) as? CategoryCell
|
let cell: CategoryCell! = tableView.cellForRowAtIndexPath(indexPath) as! CategoryCell//tableView.dequeueReusableCellWithIdentifier("CategoryCell", forIndexPath: indexPath) as? CategoryCell
|
||||||
if(self.ebayManager.isAuthorized && cell.shouldAskAboutLeafCategories){
|
|
||||||
self.potentialEbay = true
|
if(self.ebayManager.isAuthorized ) {
|
||||||
self.navigateCategories()
|
var dict: Dictionary<String, Dictionary<String, AnyObject>> = (EbayWebServiceManager.settingsDictionary["categories"]!) as! Dictionary<String, Dictionary<String, AnyObject>>
|
||||||
|
|
||||||
|
let catDict = dict[self.selectedCategory]
|
||||||
|
if (catDict != nil && !(catDict!["isLeaf"] as! Bool)){
|
||||||
|
self.potentialEbay = true
|
||||||
|
self.navigateCategories()
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
self.performSegueWithIdentifier("NetworkSelectionSegue", sender: self)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
self.performSegueWithIdentifier("NetworkSelectionSegue", sender: self)
|
self.performSegueWithIdentifier("NetworkSelectionSegue", sender: self)
|
||||||
|
|||||||
@ -214,8 +214,10 @@ extension EbayWebServiceManager {
|
|||||||
self.requestMaker(soapMessage, theRequest: theRequest)
|
self.requestMaker(soapMessage, theRequest: theRequest)
|
||||||
}
|
}
|
||||||
|
|
||||||
func addImagesToListing(listingID: String, imageURL: String, onCompletion: ServiceResponse) {
|
func addImagesToListing(listingID: String, imageURLs: [String], listingOnCompletion: ServiceResponse, body: [String:String],onCompletion: ServiceResponse) {
|
||||||
|
|
||||||
|
listItem(body, imageUrls: imageURLs, completion: listingOnCompletion)
|
||||||
|
/*
|
||||||
var soapMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
|
var soapMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
|
||||||
"<ReviseItemRequest xmlns=\"urn:ebay:apis:eBLBaseComponents\">" +
|
"<ReviseItemRequest xmlns=\"urn:ebay:apis:eBLBaseComponents\">" +
|
||||||
"<RequesterCredentials>" +
|
"<RequesterCredentials>" +
|
||||||
@ -224,21 +226,26 @@ extension EbayWebServiceManager {
|
|||||||
|
|
||||||
soapMessage = soapMessage + "<ErrorLanguage>en_US</ErrorLanguage>" +
|
soapMessage = soapMessage + "<ErrorLanguage>en_US</ErrorLanguage>" +
|
||||||
"<Item>" +
|
"<Item>" +
|
||||||
"<ItemID>\(listingID)</ItemID>" +
|
"<ItemID>\(listingID)</ItemID>"
|
||||||
"<PictureDetails>" +
|
|
||||||
"<PictureURL>\(imageURL.stringByReplacingOccurrencesOfString("&", withString: "&"))</PictureURL>" +
|
for i in 0...(imageURLs.count - 1) {
|
||||||
"</PictureDetails>" +
|
soapMessage = soapMessage + "<PictureDetails>" +
|
||||||
"</Item></ReviseItemRequest>"
|
"<PictureURL>\(imageURLs[i].stringByReplacingOccurrencesOfString("&", withString: "&"))</PictureURL>" +
|
||||||
|
"</PictureDetails>"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
soapMessage = soapMessage + "</Item></ReviseItemRequest>"
|
||||||
|
|
||||||
let url = NSURL(string: self.baseURL)
|
let url = NSURL(string: self.baseURL)
|
||||||
let theRequest = NSMutableURLRequest(URL: url!)
|
let theRequest = NSMutableURLRequest(URL: url!)
|
||||||
theRequest.addValue("ReviseItem", forHTTPHeaderField: "X-EBAY-API-CALL-NAME")
|
theRequest.addValue("ReviseItem", forHTTPHeaderField: "X-EBAY-API-CALL-NAME")
|
||||||
self.completion = onCompletion
|
self.completion = onCompletion
|
||||||
self.requestMaker(soapMessage, theRequest: theRequest)
|
self.requestMaker(soapMessage, theRequest: theRequest)
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
func listItem(params: [String: String], completion: ServiceResponse?){
|
func listItem(params: [String: String], imageUrls: [String], completion: ServiceResponse?){
|
||||||
var dict = EbayWebServiceManager.settingsDictionary
|
var dict = EbayWebServiceManager.settingsDictionary
|
||||||
var emailRetrievalGroup = dispatch_group_create()
|
var emailRetrievalGroup = dispatch_group_create()
|
||||||
var soapMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
|
var soapMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
|
||||||
@ -275,8 +282,15 @@ extension EbayWebServiceManager {
|
|||||||
"<ListingDuration>\(dict["listingDuration"] as! String!)</ListingDuration>" +
|
"<ListingDuration>\(dict["listingDuration"] as! String!)</ListingDuration>" +
|
||||||
"<ListingType>\(dict["listingType"] as! String!)</ListingType>" +
|
"<ListingType>\(dict["listingType"] as! String!)</ListingType>" +
|
||||||
"<PaymentMethods>\(dict["payment"] as! String!)</PaymentMethods>" +
|
"<PaymentMethods>\(dict["payment"] as! String!)</PaymentMethods>" +
|
||||||
"<PayPalEmailAddress>\(dict["paypal_email"] as! String!)</PayPalEmailAddress>" +
|
"<PayPalEmailAddress>\(dict["paypal_email"] as! String!)</PayPalEmailAddress><PictureDetails>"
|
||||||
"<PostalCode>\(dict["postalCode"] as! String!)</PostalCode>" +
|
|
||||||
|
for i in 0...(0/*imageUrls.count - 1*/) { //will replace with actual count once everything is working with images
|
||||||
|
soapMessage = soapMessage +
|
||||||
|
"<PictureURL>\(imageUrls[i].stringByReplacingOccurrencesOfString("&", withString: "&"))</PictureURL>"
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
soapMessage = soapMessage + "</PictureDetails><PostalCode>\(dict["postalCode"] as! String!)</PostalCode>" +
|
||||||
"<Quantity>\(params["quantity"] as String!)</Quantity>" +
|
"<Quantity>\(params["quantity"] as String!)</Quantity>" +
|
||||||
"<ReturnPolicy>" +
|
"<ReturnPolicy>" +
|
||||||
"<ReturnsAcceptedOption>\(dict["return"] as! String!)</ReturnsAcceptedOption>" +
|
"<ReturnsAcceptedOption>\(dict["return"] as! String!)</ReturnsAcceptedOption>" +
|
||||||
@ -292,7 +306,7 @@ extension EbayWebServiceManager {
|
|||||||
"</ShippingDetails>" +
|
"</ShippingDetails>" +
|
||||||
"<Site>US</Site>" +
|
"<Site>US</Site>" +
|
||||||
"</Item></AddItemRequest>"
|
"</Item></AddItemRequest>"
|
||||||
|
print(soapMessage)
|
||||||
let url = NSURL(string: self.baseURL)
|
let url = NSURL(string: self.baseURL)
|
||||||
let theRequest = NSMutableURLRequest(URL: url!)
|
let theRequest = NSMutableURLRequest(URL: url!)
|
||||||
theRequest.addValue("AddItem", forHTTPHeaderField: "X-EBAY-API-CALL-NAME")
|
theRequest.addValue("AddItem", forHTTPHeaderField: "X-EBAY-API-CALL-NAME")
|
||||||
@ -520,11 +534,17 @@ extension EbayWebServiceManager: NSXMLParserDelegate {
|
|||||||
EbayWebServiceManager.settingsDictionary["categories"] = dict
|
EbayWebServiceManager.settingsDictionary["categories"] = dict
|
||||||
NSUserDefaults.standardUserDefaults().setObject(EbayWebServiceManager.settingsDictionary, forKey: "ebaySettings")
|
NSUserDefaults.standardUserDefaults().setObject(EbayWebServiceManager.settingsDictionary, forKey: "ebaySettings")
|
||||||
}
|
}
|
||||||
else {
|
var dict: Dictionary<String, Dictionary<String, AnyObject>> = (EbayWebServiceManager.settingsDictionary["categories"]!) as! Dictionary<String, Dictionary<String, AnyObject>>
|
||||||
if "\(self.catDetailLevel)" == self.catLevel {
|
|
||||||
if((self.subCategories[string] == nil )){
|
dict[string] = ["cat_id": self.catID, "isLeaf": false, "level": self.catLevel]
|
||||||
self.subCategories[string] = ["cat_id": self.catID, "isLeaf": false, "level": self.catLevel]
|
EbayWebServiceManager.settingsDictionary["categories"] = dict
|
||||||
}
|
NSUserDefaults.standardUserDefaults().setObject(EbayWebServiceManager.settingsDictionary, forKey: "ebaySettings")
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if "\(self.catDetailLevel)" == self.catLevel {
|
||||||
|
if((self.subCategories[string] == nil )){
|
||||||
|
self.subCategories[string] = ["cat_id": self.catID, "isLeaf": false, "level": self.catLevel]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -90,6 +90,7 @@ extension FacebookGraphAPIManager {
|
|||||||
print(result.token)
|
print(result.token)
|
||||||
print(result.grantedPermissions)
|
print(result.grantedPermissions)
|
||||||
NSUserDefaults.standardUserDefaults().setBool(true, forKey:"fbAuthorized")
|
NSUserDefaults.standardUserDefaults().setBool(true, forKey:"fbAuthorized")
|
||||||
|
self.isAuthorized = true
|
||||||
|
|
||||||
FBSDKAccessToken.setCurrentAccessToken(result.token)
|
FBSDKAccessToken.setCurrentAccessToken(result.token)
|
||||||
|
|
||||||
@ -103,6 +104,10 @@ extension FacebookGraphAPIManager {
|
|||||||
(result, error) -> Void in
|
(result, error) -> Void in
|
||||||
|
|
||||||
NSLog("Logged in with publish permisions")
|
NSLog("Logged in with publish permisions")
|
||||||
|
NSUserDefaults.standardUserDefaults().setBool(true, forKey:"fbAuthorized")
|
||||||
|
self.isAuthorized = true
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
@ -65,13 +65,13 @@ class HomeViewController: UITabBarController {
|
|||||||
var listingImages: [UIImage] = [mainImage!]
|
var listingImages: [UIImage] = [mainImage!]
|
||||||
var count = 0
|
var count = 0
|
||||||
//Get supporting images
|
//Get supporting images
|
||||||
for i in 2...5 {
|
for i in 1...4 {
|
||||||
let supportListingImg1 = storageRef.child("images/\(key)/\(i).jpg")
|
let supportListingImg1 = storageRef.child("images/\(key)/\(i).jpg")
|
||||||
supportListingImg1.dataWithMaxSize(10 * 1024 * 1024, completion: {
|
supportListingImg1.dataWithMaxSize(10 * 1024 * 1024, completion: {
|
||||||
(data1, error) -> Void in
|
(data1, error) -> Void in
|
||||||
|
|
||||||
if(error != nil){
|
if(error != nil){
|
||||||
print("support image \(i - 1) for key, \(key), does not exist")
|
print("support image \(i) for key, \(key), does not exist")
|
||||||
}else{
|
}else{
|
||||||
listingImages.append(UIImage(data: data1!)!)
|
listingImages.append(UIImage(data: data1!)!)
|
||||||
}
|
}
|
||||||
@ -94,6 +94,7 @@ class HomeViewController: UITabBarController {
|
|||||||
self.userListings.append(
|
self.userListings.append(
|
||||||
Listing(itemTitle: (listingInfo!["listingTitle"] as? String)!,
|
Listing(itemTitle: (listingInfo!["listingTitle"] as? String)!,
|
||||||
itemCategory: listingInfo!["listingCategory"] as? String,
|
itemCategory: listingInfo!["listingCategory"] as? String,
|
||||||
|
itemQuantity: (listingInfo!["listingQuantity"] as? String)!,
|
||||||
itemPrice: listingInfo!["listingPrice"] as? String,
|
itemPrice: listingInfo!["listingPrice"] as? String,
|
||||||
itemDescription: listingInfo!["listingDescription"] as? String,
|
itemDescription: listingInfo!["listingDescription"] as? String,
|
||||||
itemImages: listingImages,
|
itemImages: listingImages,
|
||||||
|
|||||||
@ -430,7 +430,6 @@ extension ItemImagePickerViewController {
|
|||||||
//save listing to private user path in firebase
|
//save listing to private user path in firebase
|
||||||
let newListingRef = (self.tabBarController as? HomeViewController)?.firebaseManager.ref.child("Users").child("\(((self.tabBarController as? HomeViewController)?.firebaseManager.user_email)!)").child("user_Listings").childByAutoId()
|
let newListingRef = (self.tabBarController as? HomeViewController)?.firebaseManager.ref.child("Users").child("\(((self.tabBarController as? HomeViewController)?.firebaseManager.user_email)!)").child("user_Listings").childByAutoId()
|
||||||
|
|
||||||
let category = (self.pickerData[self.categoryPicker.selectedRowInComponent(0)])
|
|
||||||
var counter = -1
|
var counter = -1
|
||||||
for bool in self.itemImagesSelections {
|
for bool in self.itemImagesSelections {
|
||||||
if bool {
|
if bool {
|
||||||
@ -443,8 +442,8 @@ extension ItemImagePickerViewController {
|
|||||||
"seller email": (NSUserDefaults.standardUserDefaults().objectForKey("email") as? String)!,
|
"seller email": (NSUserDefaults.standardUserDefaults().objectForKey("email") as? String)!,
|
||||||
"listingTitle": self.itemName.text,
|
"listingTitle": self.itemName.text,
|
||||||
"listingPrice": self.itemPrice.text,
|
"listingPrice": self.itemPrice.text,
|
||||||
"listingCategory": category,
|
|
||||||
"listingDescription": self.itemDescription.text,
|
"listingDescription": self.itemDescription.text,
|
||||||
|
"listingQuantity": self.itemQuantity.text!,
|
||||||
"numberOfSupportingImages" : counter,
|
"numberOfSupportingImages" : counter,
|
||||||
"isListingDraft": true,
|
"isListingDraft": true,
|
||||||
"networks": ["areNetworksChosen": false]]
|
"networks": ["areNetworksChosen": false]]
|
||||||
|
|||||||
@ -21,6 +21,7 @@ class ItemTableViewController: UIViewController {
|
|||||||
@IBOutlet weak var menuButton: UIBarButtonItem!
|
@IBOutlet weak var menuButton: UIBarButtonItem!
|
||||||
|
|
||||||
var loadingView: UIView!
|
var loadingView: UIView!
|
||||||
|
var selectedListing: Listing!
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
@ -87,6 +88,35 @@ extension ItemTableViewController {
|
|||||||
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
|
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
|
||||||
// Get the new view controller using segue.destinationViewController.
|
// Get the new view controller using segue.destinationViewController.
|
||||||
// Pass the selected object to the new view controller.
|
// Pass the selected object to the new view controller.
|
||||||
|
|
||||||
|
let des = segue.destinationViewController as! ListingPreviewViewController
|
||||||
|
var tempImages: [UIImageView] = []
|
||||||
|
for uiImage in self.selectedListing.images {
|
||||||
|
tempImages.append(UIImageView(image: uiImage))
|
||||||
|
}
|
||||||
|
let dict:[String:AnyObject] = [
|
||||||
|
"pictures": tempImages,
|
||||||
|
"title": self.selectedListing.title != nil ? self.selectedListing.title : "",
|
||||||
|
"description": self.selectedListing.desc != nil ? self.selectedListing.desc: "",
|
||||||
|
"price": self.selectedListing.price != nil ? self.selectedListing.price : "",
|
||||||
|
"category": self.selectedListing.category != nil ? self.selectedListing.category : "",
|
||||||
|
"quantity": self.selectedListing.quantity != nil ? self.selectedListing.quantity: nil
|
||||||
|
]
|
||||||
|
|
||||||
|
des.setDictionary(self.selectedListing.networks, itemdictionary: dict)
|
||||||
|
des.setManagers(
|
||||||
|
((self.tabBarController as? HomeViewController)?.fbGraphManager)!,
|
||||||
|
fireManager: ((self.tabBarController as? HomeViewController)?.firebaseManager)!,
|
||||||
|
ebayManager: ((self.tabBarController as? HomeViewController)?.ebayGraphManager)!,
|
||||||
|
etsyManager: ((self.tabBarController as? HomeViewController)?.etsyManager)!
|
||||||
|
)
|
||||||
|
|
||||||
|
if self.selectedListing.isDraft! {
|
||||||
|
des.setViewState("Editible")
|
||||||
|
}else {
|
||||||
|
des.setViewState("NonEditable")
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,6 +183,11 @@ extension ItemTableViewController: UITableViewDataSource{
|
|||||||
}
|
}
|
||||||
return cell
|
return cell
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
|
||||||
|
self.selectedListing = (self.tabBarController as? HomeViewController)?.userListings[indexPath.row]
|
||||||
|
self.performSegueWithIdentifier("ItemDetailSegue", sender: self)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -15,18 +15,20 @@ class Listing : NSObject {
|
|||||||
var category: String!
|
var category: String!
|
||||||
var price: String!
|
var price: String!
|
||||||
var desc: String!
|
var desc: String!
|
||||||
|
var quantity: String!
|
||||||
var isDraft: Bool!
|
var isDraft: Bool!
|
||||||
var images: [UIImage]!
|
var images: [UIImage]!
|
||||||
var key: String!
|
var key: String!
|
||||||
var networks: Dictionary<String, Bool>!
|
var networks: Dictionary<String, Bool>!
|
||||||
var listingStatus: String!
|
var listingStatus: String!
|
||||||
|
|
||||||
init(itemTitle:String, itemCategory: String!, itemPrice: String!, itemDescription: String!, itemImages: [UIImage], isDraftListing: Bool, itemKey: String, networksSellingOn: Dictionary<String, Bool>){
|
init(itemTitle:String, itemCategory: String!, itemQuantity: String!, itemPrice: String!, itemDescription: String!, itemImages: [UIImage], isDraftListing: Bool, itemKey: String, networksSellingOn: Dictionary<String, Bool>){
|
||||||
|
|
||||||
self.title = itemTitle
|
self.title = itemTitle
|
||||||
self.category = itemCategory
|
self.category = itemCategory
|
||||||
self.price = itemPrice
|
self.price = itemPrice
|
||||||
self.desc = itemDescription
|
self.desc = itemDescription
|
||||||
|
self.quantity = itemQuantity
|
||||||
self.isDraft = isDraftListing
|
self.isDraft = isDraftListing
|
||||||
self.images = itemImages
|
self.images = itemImages
|
||||||
self.key = itemKey
|
self.key = itemKey
|
||||||
|
|||||||
@ -14,6 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
import FirebaseStorage
|
||||||
import SWRevealViewController
|
import SWRevealViewController
|
||||||
|
|
||||||
//@TODO: Need to make multiple images work for etsy and facebook and need to implement multiple images saving to firebase
|
//@TODO: Need to make multiple images work for etsy and facebook and need to implement multiple images saving to firebase
|
||||||
@ -22,12 +23,19 @@ class ListingPreviewViewController: UIViewController {
|
|||||||
//IBOutlets
|
//IBOutlets
|
||||||
@IBOutlet weak var containerScrollView: UIScrollView!
|
@IBOutlet weak var containerScrollView: UIScrollView!
|
||||||
@IBOutlet weak var itemQuantity: UITextView!
|
@IBOutlet weak var itemQuantity: UITextView!
|
||||||
@IBOutlet weak var itemPicture: UIImageView!
|
@IBOutlet weak var itemPictureMain: UIImageView!
|
||||||
|
@IBOutlet weak var itemPictureSup1: UIImageView!
|
||||||
|
@IBOutlet weak var itemPictureSup2: UIImageView!
|
||||||
|
@IBOutlet weak var itemPictureSup3: UIImageView!
|
||||||
|
@IBOutlet weak var itemPictureSup4: UIImageView!
|
||||||
@IBOutlet weak var itemTitle: UITextView!
|
@IBOutlet weak var itemTitle: UITextView!
|
||||||
@IBOutlet weak var itemDescription: UITextView!
|
@IBOutlet weak var itemDescription: UITextView!
|
||||||
@IBOutlet weak var itemPrice: UITextView!
|
@IBOutlet weak var itemPrice: UITextView!
|
||||||
@IBOutlet weak var itemCategory: UITextView!
|
@IBOutlet weak var itemCategory: UITextView!
|
||||||
@IBOutlet weak var networks: UICollectionView!
|
@IBOutlet weak var networks: UICollectionView!
|
||||||
|
@IBOutlet weak var publishBtn: UIButton!
|
||||||
|
@IBOutlet weak var edit_button: UIButton!
|
||||||
|
@IBOutlet weak var cancel_backBtn: UIButton!
|
||||||
|
|
||||||
//class variables
|
//class variables
|
||||||
private var networksDictionary: Dictionary<String, Bool> = Dictionary<String, Bool>()
|
private var networksDictionary: Dictionary<String, Bool> = Dictionary<String, Bool>()
|
||||||
@ -40,10 +48,29 @@ class ListingPreviewViewController: UIViewController {
|
|||||||
private var lastListingKey: String!
|
private var lastListingKey: String!
|
||||||
private var newInProgressListing: Dictionary<String,AnyObject> = Dictionary<String, AnyObject>()
|
private var newInProgressListing: Dictionary<String,AnyObject> = Dictionary<String, AnyObject>()
|
||||||
var loadingView: UIView!
|
var loadingView: UIView!
|
||||||
|
private var itemViewState = ""
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
|
if (self.itemViewState == "NonEditable") {
|
||||||
|
dispatch_async(dispatch_get_main_queue(), {
|
||||||
|
//self.cancel_backBtn.titleLabel?.text = "Back"
|
||||||
|
self.edit_button.hidden = true
|
||||||
|
self.edit_button.enabled = false
|
||||||
|
|
||||||
|
self.publishBtn.hidden = true
|
||||||
|
self.publishBtn.enabled = false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
/*if(!self.networksDictionary["areNetworksChosen"]!) {
|
||||||
|
self.networks.hidden = true
|
||||||
|
}*/
|
||||||
|
/*else if (self.itemViewState == "Editable") {
|
||||||
|
//self.cancel_backBtn.titleLabel?.text = "Back"
|
||||||
|
|
||||||
|
}*/
|
||||||
// Do any additional setup after loading the view.
|
// Do any additional setup after loading the view.
|
||||||
|
|
||||||
// Initialization code
|
// Initialization code
|
||||||
@ -65,7 +92,27 @@ class ListingPreviewViewController: UIViewController {
|
|||||||
func setListing(){
|
func setListing(){
|
||||||
|
|
||||||
|
|
||||||
self.itemPicture.image = (self.itemListingDictionary["pictures"] as? [UIImageView])![0].image
|
for i in 0...((self.itemListingDictionary["pictures"] as! [UIImageView]).count - 1) {
|
||||||
|
switch i {
|
||||||
|
case 0:
|
||||||
|
self.itemPictureMain.image = (self.itemListingDictionary["pictures"] as? [UIImageView])![i].image
|
||||||
|
break
|
||||||
|
case 1:
|
||||||
|
self.itemPictureSup1.image = (self.itemListingDictionary["pictures"] as? [UIImageView])![i].image
|
||||||
|
break
|
||||||
|
case 2:
|
||||||
|
self.itemPictureSup2.image = (self.itemListingDictionary["pictures"] as? [UIImageView])![i].image
|
||||||
|
break
|
||||||
|
case 3:
|
||||||
|
self.itemPictureSup3.image = (self.itemListingDictionary["pictures"] as? [UIImageView])![i].image
|
||||||
|
break
|
||||||
|
case 4:
|
||||||
|
self.itemPictureSup4.image = (self.itemListingDictionary["pictures"] as? [UIImageView])![i].image
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
self.itemTitle.text = self.itemListingDictionary["title"] as! String
|
self.itemTitle.text = self.itemListingDictionary["title"] as! String
|
||||||
self.itemDescription.text = self.itemListingDictionary["description"] as! String
|
self.itemDescription.text = self.itemListingDictionary["description"] as! String
|
||||||
self.itemPrice.text = self.itemListingDictionary["price"] as! String
|
self.itemPrice.text = self.itemListingDictionary["price"] as! String
|
||||||
@ -73,6 +120,10 @@ class ListingPreviewViewController: UIViewController {
|
|||||||
self.itemQuantity.text = self.itemListingDictionary["quantity"] as! String
|
self.itemQuantity.text = self.itemListingDictionary["quantity"] as! String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func setViewState(state: String) {
|
||||||
|
self.itemViewState = state
|
||||||
|
}
|
||||||
|
|
||||||
func setDictionary(netdictionary:Dictionary<String, Bool>, itemdictionary: Dictionary<String, AnyObject!>){
|
func setDictionary(netdictionary:Dictionary<String, Bool>, itemdictionary: Dictionary<String, AnyObject!>){
|
||||||
self.networksDictionary = netdictionary
|
self.networksDictionary = netdictionary
|
||||||
self.itemListingDictionary = itemdictionary
|
self.itemListingDictionary = itemdictionary
|
||||||
@ -85,7 +136,14 @@ class ListingPreviewViewController: UIViewController {
|
|||||||
self.etsyManager = etsyManager
|
self.etsyManager = etsyManager
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func saveToFirebase(listingImageRef: FIRStorageReference, completion: ServiceResponse! ) {
|
||||||
|
|
||||||
|
listingImageRef.putData(UIImageJPEGRepresentation(self.itemPictureMain.image!, 0.8)!, metadata: nil,completion: {
|
||||||
|
(metadata, error) -> Void in
|
||||||
|
completion(metadata, error)
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: - Navigation
|
// MARK: - Navigation
|
||||||
|
|
||||||
@ -142,9 +200,15 @@ extension Dictionary {
|
|||||||
//MARK: - IBActions
|
//MARK: - IBActions
|
||||||
extension ListingPreviewViewController {
|
extension ListingPreviewViewController {
|
||||||
@IBAction func cancel(sender: AnyObject) {
|
@IBAction func cancel(sender: AnyObject) {
|
||||||
let storyboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
|
if self.itemViewState == "" {
|
||||||
let vc = storyboard.instantiateViewControllerWithIdentifier("Reveal View Controller") as! SWRevealViewController
|
let storyboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
|
||||||
self.presentViewController(vc, animated: true, completion: nil)
|
let vc = storyboard.instantiateViewControllerWithIdentifier("Reveal View Controller") as! SWRevealViewController
|
||||||
|
self.presentViewController(vc, animated: true, completion: nil)
|
||||||
|
}
|
||||||
|
else if self.itemViewState == "Editable" || self.itemViewState == "NonEditable"{
|
||||||
|
self.presentingViewController?.dismissViewControllerAnimated(true, completion: nil)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func publishItem(sender: AnyObject) {
|
@IBAction func publishItem(sender: AnyObject) {
|
||||||
@ -158,7 +222,7 @@ extension ListingPreviewViewController {
|
|||||||
self.view.addSubview(loadingView)
|
self.view.addSubview(loadingView)
|
||||||
self.firManager.indicator.startAnimating()
|
self.firManager.indicator.startAnimating()
|
||||||
|
|
||||||
if(self.itemPicture.image == nil){
|
if(self.itemPictureMain.image == nil){
|
||||||
let alert = UIAlertController(title: "Image Needed", message: "To proceed to choose networks, you must supply at least one picture for your listing", preferredStyle: .Alert)
|
let alert = UIAlertController(title: "Image Needed", message: "To proceed to choose networks, you must supply at least one picture for your listing", preferredStyle: .Alert)
|
||||||
alert.addAction(UIAlertAction(title: "OK", style: .Default, handler:{(action: UIAlertAction!) in alert.dismissViewControllerAnimated(true, completion: nil)}))
|
alert.addAction(UIAlertAction(title: "OK", style: .Default, handler:{(action: UIAlertAction!) in alert.dismissViewControllerAnimated(true, completion: nil)}))
|
||||||
|
|
||||||
@ -169,10 +233,14 @@ extension ListingPreviewViewController {
|
|||||||
//save listing to private user path in firebase
|
//save listing to private user path in firebase
|
||||||
let newListingRef = self.firManager.ref.child("Users").child("\(self.firManager.user_email)").child("user_Listings").childByAutoId()
|
let newListingRef = self.firManager.ref.child("Users").child("\(self.firManager.user_email)").child("user_Listings").childByAutoId()
|
||||||
let postingGroup: dispatch_group_t = dispatch_group_create()
|
let postingGroup: dispatch_group_t = dispatch_group_create()
|
||||||
|
|
||||||
|
/*if(!(self.networksDictionary["ebay"]!)&&(!(self.networksDictionary["etsy"]!))&&(!(self.networksDictionary["amazon"]!))&&(!(self.networksDictionary["facebook"]!))) {
|
||||||
|
|
||||||
|
}else {
|
||||||
|
dispatch_g
|
||||||
|
}*/
|
||||||
//post to ebay
|
//post to ebay
|
||||||
if(self.networksDictionary["ebay"]!){
|
/*if(self.networksDictionary["ebay"]!){
|
||||||
dispatch_group_enter(postingGroup)
|
dispatch_group_enter(postingGroup)
|
||||||
|
|
||||||
let body: [String: String] = [ "title": self.itemTitle.text,
|
let body: [String: String] = [ "title": self.itemTitle.text,
|
||||||
@ -192,7 +260,7 @@ extension ListingPreviewViewController {
|
|||||||
self.newInProgressListing["networkIDs"] = networkIDs
|
self.newInProgressListing["networkIDs"] = networkIDs
|
||||||
dispatch_group_leave(postingGroup)
|
dispatch_group_leave(postingGroup)
|
||||||
})
|
})
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
|
||||||
//post to amazon
|
//post to amazon
|
||||||
@ -329,7 +397,7 @@ extension ListingPreviewViewController {
|
|||||||
|
|
||||||
let imageBody = ["listing_id": networkIDs["etsy"] as! Int,
|
let imageBody = ["listing_id": networkIDs["etsy"] as! Int,
|
||||||
//"type":"image/jpg",
|
//"type":"image/jpg",
|
||||||
"image": UIImageJPEGRepresentation(self.itemPicture.image!, 0.45)!]
|
"image": UIImageJPEGRepresentation(self.itemPictureMain.image!, 0.45)!]
|
||||||
|
|
||||||
self.etsyManager.sendPOSTRequest(("listings/\(networkIDs["etsy"] as! Int)/images"), body: imageBody, onCompletion: {
|
self.etsyManager.sendPOSTRequest(("listings/\(networkIDs["etsy"] as! Int)/images"), body: imageBody, onCompletion: {
|
||||||
(dict, error) -> Void in
|
(dict, error) -> Void in
|
||||||
@ -346,26 +414,93 @@ extension ListingPreviewViewController {
|
|||||||
//post to facebook
|
//post to facebook
|
||||||
if(self.networksDictionary["facebook"]!){
|
if(self.networksDictionary["facebook"]!){
|
||||||
dispatch_group_enter(postingGroup)
|
dispatch_group_enter(postingGroup)
|
||||||
|
let fb_group: dispatch_group_t = dispatch_group_create()
|
||||||
|
|
||||||
let tmpDirURL = NSURL.fileURLWithPath(NSTemporaryDirectory(), isDirectory: true)
|
let tmpDirURL = NSURL.fileURLWithPath(NSTemporaryDirectory(), isDirectory: true)
|
||||||
let fileURL = tmpDirURL.URLByAppendingPathComponent("main").URLByAppendingPathExtension("jpg")
|
let fileURL = tmpDirURL.URLByAppendingPathComponent("main").URLByAppendingPathExtension("jpg")
|
||||||
print("FilePath: \(fileURL.path!)")
|
print("FilePath: \(fileURL.path!)")
|
||||||
do {
|
do {
|
||||||
try UIImageJPEGRepresentation(self.itemPicture.image!, 0.45)!.writeToFile(fileURL.path!, options: NSDataWritingOptions.AtomicWrite)
|
try UIImageJPEGRepresentation(self.itemPictureMain.image!, 0.45)!.writeToFile(fileURL.path!, options: NSDataWritingOptions.AtomicWrite)
|
||||||
}catch{
|
}catch{
|
||||||
(error)
|
(error)
|
||||||
print(error)
|
print(error)
|
||||||
}
|
}
|
||||||
|
|
||||||
//let parameters: Dictionary<String, AnyObject> = ["message":("**"+self.itemTitle.text!+"**\n\n"+"Price: "+self.itemPrice.text! + "\n\n"+self.itemDescription.text!)]
|
|
||||||
|
|
||||||
let parameters: Dictionary<String, AnyObject> = ["Source": UIImageJPEGRepresentation(self.itemPicture.image!, 0.45)!, "published":false]
|
|
||||||
|
|
||||||
self.lastListingKey = newListingRef.key
|
self.lastListingKey = newListingRef.key
|
||||||
self.graphManager.makePOSTResquest("me/photos", params: parameters, onComplete: {
|
|
||||||
(imageId, error) -> Void in
|
var imageIDs: [String] = []
|
||||||
|
|
||||||
|
|
||||||
|
//post multiple images to fb
|
||||||
|
for i in 0...(self.itemListingDictionary["pictures"] as! [UIImageView]).count - 1 {
|
||||||
|
var parameters: Dictionary<String, AnyObject> = Dictionary<String, AnyObject>()
|
||||||
|
switch (i) {
|
||||||
|
|
||||||
|
case 0:
|
||||||
|
dispatch_group_enter(fb_group)
|
||||||
|
parameters["Source"] = UIImageJPEGRepresentation(self.itemPictureMain.image!,0.45)!
|
||||||
|
parameters["published"] = false
|
||||||
|
self.graphManager.makePOSTResquest("me/photos", params: parameters, onComplete: {
|
||||||
|
(imageId, error) -> Void in
|
||||||
|
imageIDs.append(imageId as! String)
|
||||||
|
dispatch_group_leave(fb_group)
|
||||||
|
})
|
||||||
|
break
|
||||||
|
case 1:
|
||||||
|
dispatch_group_enter(fb_group)
|
||||||
|
parameters["Source"] = UIImageJPEGRepresentation(self.itemPictureSup1.image!,0.45)!
|
||||||
|
parameters["published"] = false
|
||||||
|
self.graphManager.makePOSTResquest("me/photos", params: parameters, onComplete: {
|
||||||
|
(imageId, error) -> Void in
|
||||||
|
imageIDs.append(imageId as! String)
|
||||||
|
dispatch_group_leave(fb_group)
|
||||||
|
})
|
||||||
|
break
|
||||||
|
case 2:
|
||||||
|
dispatch_group_enter(fb_group)
|
||||||
|
parameters["Source"] = UIImageJPEGRepresentation(self.itemPictureSup2.image!,0.45)!
|
||||||
|
parameters["published"] = false
|
||||||
|
self.graphManager.makePOSTResquest("me/photos", params: parameters, onComplete: {
|
||||||
|
(imageId, error) -> Void in
|
||||||
|
imageIDs.append(imageId as! String)
|
||||||
|
dispatch_group_leave(fb_group)
|
||||||
|
})
|
||||||
|
break
|
||||||
|
case 3:
|
||||||
|
dispatch_group_enter(fb_group)
|
||||||
|
parameters["Source"] = UIImageJPEGRepresentation(self.itemPictureSup3.image!,0.45)!
|
||||||
|
parameters["published"] = false
|
||||||
|
self.graphManager.makePOSTResquest("me/photos", params: parameters, onComplete: {
|
||||||
|
(imageId, error) -> Void in
|
||||||
|
imageIDs.append(imageId as! String)
|
||||||
|
dispatch_group_leave(fb_group)
|
||||||
|
})
|
||||||
|
break
|
||||||
|
case 4:
|
||||||
|
dispatch_group_enter(fb_group)
|
||||||
|
parameters["Source"] = UIImageJPEGRepresentation(self.itemPictureSup4.image!,0.45)!
|
||||||
|
parameters["published"] = false
|
||||||
|
self.graphManager.makePOSTResquest("me/photos", params: parameters, onComplete: {
|
||||||
|
(imageId, error) -> Void in
|
||||||
|
imageIDs.append(imageId as! String)
|
||||||
|
dispatch_group_leave(fb_group)
|
||||||
|
})
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//notifies that all images are ready to be attached to new listing on facebook
|
||||||
|
dispatch_group_notify(fb_group, dispatch_get_main_queue(), {
|
||||||
|
|
||||||
|
var listingParams: Dictionary<String, AnyObject> = ["message":("**"+self.itemTitle.text!+"**\n\n"+"Price: "+self.itemPrice.text! + "\n\n"+self.itemDescription.text!)]
|
||||||
|
|
||||||
|
for i in 0...(self.itemListingDictionary["pictures"] as! [UIImageView]).count - 1 {
|
||||||
|
listingParams["attached_media[\(i)]"] = "{\"media_fbid\":\"\(imageIDs[i])\"}"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var listingParams: Dictionary<String, AnyObject> = ["message":("**"+self.itemTitle.text!+"**\n\n"+"Price: "+self.itemPrice.text! + "\n\n"+self.itemDescription.text!), "attached_media[0]":"{\"media_fbid\":\"\(imageId as! String)\"}"]
|
|
||||||
self.graphManager.makePOSTResquest("me/feed", params: listingParams, onComplete: {
|
self.graphManager.makePOSTResquest("me/feed", params: listingParams, onComplete: {
|
||||||
(listingId, error) -> Void in
|
(listingId, error) -> Void in
|
||||||
|
|
||||||
@ -376,25 +511,24 @@ extension ListingPreviewViewController {
|
|||||||
networkIDs["facebook"] = listingId as! String
|
networkIDs["facebook"] = listingId as! String
|
||||||
self.newInProgressListing["networkIDs"] = networkIDs
|
self.newInProgressListing["networkIDs"] = networkIDs
|
||||||
dispatch_group_leave(postingGroup)
|
dispatch_group_leave(postingGroup)
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
/*
|
|
||||||
|
|
||||||
*/
|
|
||||||
})
|
})
|
||||||
|
|
||||||
//let parameters: Dictionary<String, AnyObject> = ["":""]
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//notifies once all selected networks have been posted to
|
||||||
dispatch_group_notify(postingGroup, dispatch_get_main_queue(), {
|
dispatch_group_notify(postingGroup, dispatch_get_main_queue(), {
|
||||||
|
//self.networksDictionary["areNetworksChosen"] = true
|
||||||
self.newInProgressListing.update(["listingID": newListingRef.key,
|
self.newInProgressListing.update(["listingID": newListingRef.key,
|
||||||
"seller email": (NSUserDefaults.standardUserDefaults().objectForKey("email") as? String)!,
|
"seller email": (NSUserDefaults.standardUserDefaults().objectForKey("email") as? String)!,
|
||||||
"listingTitle": self.itemTitle.text,
|
"listingTitle": self.itemTitle.text,
|
||||||
"listingPrice": self.itemPrice.text,
|
"listingPrice": self.itemPrice.text,
|
||||||
"listingCategory": self.itemCategory.text,
|
"listingCategory": self.itemCategory.text,
|
||||||
|
"listingQuantity": self.itemQuantity.text,
|
||||||
"listingDescription": self.itemDescription.text,
|
"listingDescription": self.itemDescription.text,
|
||||||
"numberOfSupportingImages" : ((self.itemListingDictionary["pictures"] as? [UIImageView])?.count)! - 1,
|
"numberOfSupportingImages" : ((self.itemListingDictionary["pictures"] as? [UIImageView])?.count)! - 1,
|
||||||
"isListingDraft": false,
|
"isListingDraft": false,
|
||||||
@ -407,37 +541,102 @@ extension ListingPreviewViewController {
|
|||||||
|
|
||||||
let storageRef = self.firManager.storage.referenceForURL((databaseDict["image_storage"] as? String)!)
|
let storageRef = self.firManager.storage.referenceForURL((databaseDict["image_storage"] as? String)!)
|
||||||
|
|
||||||
|
var imageURLs: [String] = []
|
||||||
|
let completion: ServiceResponse = {(metadata, error) -> Void in
|
||||||
|
|
||||||
|
//for ebay due to its unique posting flow, will use firbase image storage url to add pictures
|
||||||
|
if (self.networksDictionary["ebay"]!){
|
||||||
|
imageURLs.append((metadata?.downloadURL()?.absoluteString)!)
|
||||||
|
dispatch_group_leave(postingGroup)
|
||||||
|
}else{
|
||||||
|
dispatch_group_leave(postingGroup)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
//change code to new multi-image saving
|
//change code to new multi-image saving
|
||||||
|
for i in 0...(self.itemListingDictionary["pictures"] as! [UIImageView]).count - 1 {
|
||||||
|
switch (i) {
|
||||||
|
|
||||||
let listingImageRef = storageRef.child("images/\(newListingRef.key)"+".jpg")
|
|
||||||
listingImageRef.putData(UIImageJPEGRepresentation(self.itemPicture.image!, 0.8)!, metadata: nil,completion:
|
|
||||||
{(metadata, error) -> Void in
|
|
||||||
|
|
||||||
//for ebay due to its unique posting flow, will use firbase image storage url to add pictures
|
case 0:
|
||||||
dispatch_group_enter(postingGroup)
|
dispatch_group_enter(postingGroup)
|
||||||
if (self.networksDictionary["ebay"]!){
|
let listingImageRef = storageRef.child("images/\(newListingRef.key)/main"+".jpg")
|
||||||
var networkIDs = self.newInProgressListing["networkIDs"] as! Dictionary<String, AnyObject>
|
self.saveToFirebase(listingImageRef, completion: completion)
|
||||||
|
break
|
||||||
self.ebayManager.addImagesToListing(networkIDs["ebay"] as! String, imageURL: (metadata?.downloadURL()?.absoluteString)!, onCompletion: {
|
case 1:
|
||||||
(_, _) -> Void in
|
dispatch_group_enter(postingGroup)
|
||||||
dispatch_group_leave(postingGroup)
|
let listingImageRef = storageRef.child("images/\(newListingRef.key)/1"+".jpg")
|
||||||
})
|
self.saveToFirebase(listingImageRef, completion: completion)
|
||||||
}else{
|
break
|
||||||
|
case 2:
|
||||||
|
dispatch_group_enter(postingGroup)
|
||||||
|
let listingImageRef = storageRef.child("images/\(newListingRef.key)/2"+".jpg")
|
||||||
|
self.saveToFirebase(listingImageRef, completion: completion)
|
||||||
|
break
|
||||||
|
case 3:
|
||||||
|
dispatch_group_enter(postingGroup)
|
||||||
|
let listingImageRef = storageRef.child("images/\(newListingRef.key)/3"+".jpg")
|
||||||
|
self.saveToFirebase(listingImageRef, completion: completion)
|
||||||
|
break
|
||||||
|
case 4:
|
||||||
|
dispatch_group_enter(postingGroup)
|
||||||
|
let listingImageRef = storageRef.child("images/\(newListingRef.key)/4"+".jpg")
|
||||||
|
self.saveToFirebase(listingImageRef, completion: completion)
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//notify to upload multiple ebay photos
|
||||||
|
dispatch_group_notify(postingGroup, dispatch_get_main_queue(), {
|
||||||
|
dispatch_group_enter(postingGroup)
|
||||||
|
if (self.networksDictionary["ebay"]!){
|
||||||
|
|
||||||
|
let body: [String: String] = [ "title": self.itemTitle.text,
|
||||||
|
"quantity":self.itemQuantity.text,
|
||||||
|
"description":self.itemDescription.text,
|
||||||
|
"price":self.itemPrice.text,
|
||||||
|
"category_id":self.itemListingDictionary["ebaySubCategoryID"] as! String
|
||||||
|
]
|
||||||
|
let listingCompletion: ServiceResponse = {
|
||||||
|
(listingID, error) -> Void in
|
||||||
|
if((self.newInProgressListing["networkIDs"] == nil)){
|
||||||
|
self.newInProgressListing["networkIDs"] = Dictionary<String, AnyObject>()
|
||||||
|
}
|
||||||
|
var networkIDs = (self.newInProgressListing["networkIDs"] as! Dictionary<String, AnyObject>)
|
||||||
|
networkIDs["ebay"] = listingID as! String
|
||||||
|
self.newInProgressListing["networkIDs"] = networkIDs
|
||||||
dispatch_group_leave(postingGroup)
|
dispatch_group_leave(postingGroup)
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch_group_notify(postingGroup, dispatch_get_main_queue(), {
|
|
||||||
newListingRef.setValue(self.newInProgressListing)
|
|
||||||
|
|
||||||
// self.alert.title = "Listing saved with error"
|
/*self.ebayManager.listItem(body, completion: {
|
||||||
// self.alert.message = "Your listing has been saved but something went wrong when trying to publish to facebook"
|
(listingID, error) -> Void in
|
||||||
|
if((self.newInProgressListing["networkIDs"] == nil)){
|
||||||
|
self.newInProgressListing["networkIDs"] = Dictionary<String, AnyObject>()
|
||||||
//let alert = UIAlertController(title: "Listing Published", message: "Your listing has been published", preferredStyle: .Alert)
|
}
|
||||||
|
var networkIDs = (self.newInProgressListing["networkIDs"] as! Dictionary<String, AnyObject>)
|
||||||
// self.alert.addAction(UIAlertAction(title: "OK", style: .Default, handler:{(action: UIAlertAction!) in self.alert.dismissViewControllerAnimated(true, completion: nil)}))
|
networkIDs["ebay"] = listingID as! String
|
||||||
|
self.newInProgressListing["networkIDs"] = networkIDs
|
||||||
|
dispatch_group_leave(postingGroup)
|
||||||
|
})*/
|
||||||
|
self.ebayManager.listItem(body, imageUrls: imageURLs, completion: listingCompletion)
|
||||||
|
//self.ebayManager.addImagesToListing(networkIDs["ebay"] as! String, imageURLs: imageURLs, listingOnCompletion: listingCompletion, body: body, onCompletion: {
|
||||||
|
//(_, _) -> Void in
|
||||||
|
//dispatch_group_leave(postingGroup)
|
||||||
|
//})
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
dispatch_group_leave(postingGroup)
|
||||||
|
}
|
||||||
|
|
||||||
|
//notify to save final listing to firebase
|
||||||
|
dispatch_group_notify(postingGroup, dispatch_get_main_queue(), {
|
||||||
|
newListingRef.setValue(self.newInProgressListing)
|
||||||
|
|
||||||
//register new listing id in global path of firebase root'
|
//register new listing id in global path of firebase root'
|
||||||
self.firManager.ref.child("Global_listings").child(newListingRef.key).setValue(newListingRef.key)
|
self.firManager.ref.child("Global_listings").child(newListingRef.key).setValue(newListingRef.key)
|
||||||
@ -454,29 +653,20 @@ extension ListingPreviewViewController {
|
|||||||
self.presentViewController(alert, animated: true, completion: nil)
|
self.presentViewController(alert, animated: true, completion: nil)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func editListing(sender: AnyObject) {
|
@IBAction func editListing(sender: AnyObject) {
|
||||||
|
|
||||||
self.performSegueWithIdentifier("EditListingSegue", sender: self)
|
self.performSegueWithIdentifier("EditListingSegue", sender: self)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extension ListingPreviewViewController: UICollectionViewDelegate {
|
extension ListingPreviewViewController: UICollectionViewDelegate {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -1006,7 +1006,7 @@
|
|||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
<state key="normal" title="Edit"/>
|
<state key="normal" title="Edit"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="editListing:" destination="gfQ-Y2-Mqh" eventType="touchUpInside" id="juI-UK-xEA"/>
|
<action selector="editListing:" destination="gfQ-Y2-Mqh" eventType="touchUpInside" id="k1t-H6-5D9"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Networks:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="nDO-rh-gjd">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Networks:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="nDO-rh-gjd">
|
||||||
@ -1023,8 +1023,7 @@
|
|||||||
<color key="titleColor" red="1" green="0.44538913570442429" blue="0.4193885779602724" alpha="1" colorSpace="calibratedRGB"/>
|
<color key="titleColor" red="1" green="0.44538913570442429" blue="0.4193885779602724" alpha="1" colorSpace="calibratedRGB"/>
|
||||||
</state>
|
</state>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="cancel:" destination="gfQ-Y2-Mqh" eventType="touchUpInside" id="a84-0e-3PX"/>
|
<action selector="cancel:" destination="gfQ-Y2-Mqh" eventType="touchUpInside" id="fNB-wM-UHJ"/>
|
||||||
<action selector="editListing:" destination="gfQ-Y2-Mqh" eventType="touchUpInside" id="yDN-99-lsc"/>
|
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
</subviews>
|
</subviews>
|
||||||
@ -1035,14 +1034,21 @@
|
|||||||
<nil key="simulatedTopBarMetrics"/>
|
<nil key="simulatedTopBarMetrics"/>
|
||||||
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina47"/>
|
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina47"/>
|
||||||
<connections>
|
<connections>
|
||||||
|
<outlet property="cancel_backBtn" destination="EMt-PR-56K" id="q2U-Eg-eO4"/>
|
||||||
<outlet property="containerScrollView" destination="T3U-DI-Ome" id="gad-zv-hsO"/>
|
<outlet property="containerScrollView" destination="T3U-DI-Ome" id="gad-zv-hsO"/>
|
||||||
|
<outlet property="edit_button" destination="yzh-tr-u8D" id="f8q-TT-a2C"/>
|
||||||
<outlet property="itemCategory" destination="ije-TG-4S5" id="XGu-Uw-hLl"/>
|
<outlet property="itemCategory" destination="ije-TG-4S5" id="XGu-Uw-hLl"/>
|
||||||
<outlet property="itemDescription" destination="u7b-0N-xli" id="d1N-lw-6sw"/>
|
<outlet property="itemDescription" destination="u7b-0N-xli" id="d1N-lw-6sw"/>
|
||||||
<outlet property="itemPicture" destination="K0z-pp-hzH" id="6Zm-Ig-Rm3"/>
|
<outlet property="itemPictureMain" destination="K0z-pp-hzH" id="cXG-P9-emv"/>
|
||||||
|
<outlet property="itemPictureSup1" destination="ldz-4W-iID" id="PHY-Nf-9Qv"/>
|
||||||
|
<outlet property="itemPictureSup2" destination="MRj-nD-Hnj" id="KPH-H3-Z5z"/>
|
||||||
|
<outlet property="itemPictureSup3" destination="L24-JN-niQ" id="fyJ-HY-klx"/>
|
||||||
|
<outlet property="itemPictureSup4" destination="LsU-De-laD" id="eBn-7o-WIl"/>
|
||||||
<outlet property="itemPrice" destination="Jh9-KG-0Yt" id="nbh-aq-W0b"/>
|
<outlet property="itemPrice" destination="Jh9-KG-0Yt" id="nbh-aq-W0b"/>
|
||||||
<outlet property="itemQuantity" destination="shU-ew-26O" id="yNg-ov-7q5"/>
|
<outlet property="itemQuantity" destination="shU-ew-26O" id="yNg-ov-7q5"/>
|
||||||
<outlet property="itemTitle" destination="WuZ-2K-lz7" id="EkY-UX-lSj"/>
|
<outlet property="itemTitle" destination="WuZ-2K-lz7" id="EkY-UX-lSj"/>
|
||||||
<outlet property="networks" destination="MS3-nc-8va" id="duP-BL-Qp2"/>
|
<outlet property="networks" destination="MS3-nc-8va" id="duP-BL-Qp2"/>
|
||||||
|
<outlet property="publishBtn" destination="deQ-F0-uVB" id="pL6-Dz-Qqg"/>
|
||||||
<segue destination="0di-oP-cGQ" kind="modal" identifier="EditListingSegue" id="rkZ-c8-XJc"/>
|
<segue destination="0di-oP-cGQ" kind="modal" identifier="EditListingSegue" id="rkZ-c8-XJc"/>
|
||||||
</connections>
|
</connections>
|
||||||
</viewController>
|
</viewController>
|
||||||
@ -1357,6 +1363,7 @@
|
|||||||
<outlet property="itemTable" destination="Thg-pb-lhN" id="u15-xE-hz6"/>
|
<outlet property="itemTable" destination="Thg-pb-lhN" id="u15-xE-hz6"/>
|
||||||
<outlet property="menuButton" destination="WjT-mo-4jm" id="1CT-vV-KLK"/>
|
<outlet property="menuButton" destination="WjT-mo-4jm" id="1CT-vV-KLK"/>
|
||||||
<outlet property="tableSegmentController" destination="X2D-np-ma4" id="DbB-DF-wEF"/>
|
<outlet property="tableSegmentController" destination="X2D-np-ma4" id="DbB-DF-wEF"/>
|
||||||
|
<segue destination="gfQ-Y2-Mqh" kind="modal" identifier="ItemDetailSegue" id="nUj-1v-ftF"/>
|
||||||
</connections>
|
</connections>
|
||||||
</viewController>
|
</viewController>
|
||||||
<placeholder placeholderIdentifier="IBFirstResponder" id="rIQ-Hu-DM0" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
<placeholder placeholderIdentifier="IBFirstResponder" id="rIQ-Hu-DM0" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||||
@ -1608,7 +1615,7 @@
|
|||||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||||
<prototypes>
|
<prototypes>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="9G8-XI-ptI">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="9G8-XI-ptI">
|
||||||
<rect key="frame" x="0.0" y="92" width="375" height="44"/>
|
<rect key="frame" x="0.0" y="28" width="375" height="44"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="9G8-XI-ptI" id="r3f-6Q-p1g">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="9G8-XI-ptI" id="r3f-6Q-p1g">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="342" height="43.5"/>
|
<rect key="frame" x="0.0" y="0.0" width="342" height="43.5"/>
|
||||||
@ -1625,7 +1632,7 @@
|
|||||||
</tableViewCellContentView>
|
</tableViewCellContentView>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="JJa-O7-kym">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="JJa-O7-kym">
|
||||||
<rect key="frame" x="0.0" y="136" width="375" height="44"/>
|
<rect key="frame" x="0.0" y="72" width="375" height="44"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="JJa-O7-kym" id="bCt-1V-IW1">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="JJa-O7-kym" id="bCt-1V-IW1">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="342" height="43.5"/>
|
<rect key="frame" x="0.0" y="0.0" width="342" height="43.5"/>
|
||||||
@ -1686,7 +1693,7 @@
|
|||||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||||
<prototypes>
|
<prototypes>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Change_Pass_Cell" id="ceq-sl-ClT">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Change_Pass_Cell" id="ceq-sl-ClT">
|
||||||
<rect key="frame" x="0.0" y="92" width="375" height="44"/>
|
<rect key="frame" x="0.0" y="28" width="375" height="44"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="ceq-sl-ClT" id="Waq-fu-UxD">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="ceq-sl-ClT" id="Waq-fu-UxD">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
|
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
|
||||||
@ -1703,7 +1710,7 @@
|
|||||||
</tableViewCellContentView>
|
</tableViewCellContentView>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Delete_Account_Cell" id="Lha-cf-Sfc">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Delete_Account_Cell" id="Lha-cf-Sfc">
|
||||||
<rect key="frame" x="0.0" y="136" width="375" height="44"/>
|
<rect key="frame" x="0.0" y="72" width="375" height="44"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="Lha-cf-Sfc" id="kmF-Sb-d0c">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="Lha-cf-Sfc" id="kmF-Sb-d0c">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
|
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
|
||||||
@ -2463,9 +2470,10 @@
|
|||||||
<inferredMetricsTieBreakers>
|
<inferredMetricsTieBreakers>
|
||||||
<segue reference="syc-IR-LNQ"/>
|
<segue reference="syc-IR-LNQ"/>
|
||||||
<segue reference="nWA-7e-2Ec"/>
|
<segue reference="nWA-7e-2Ec"/>
|
||||||
<segue reference="Sz0-BH-2me"/>
|
<segue reference="nUj-1v-ftF"/>
|
||||||
<segue reference="eaI-bm-1aI"/>
|
<segue reference="NOz-ya-avj"/>
|
||||||
<segue reference="rkZ-c8-XJc"/>
|
<segue reference="rkZ-c8-XJc"/>
|
||||||
|
<segue reference="eaI-bm-1aI"/>
|
||||||
</inferredMetricsTieBreakers>
|
</inferredMetricsTieBreakers>
|
||||||
<color key="tintColor" red="0.2784313725" green="0.80392156859999997" blue="0.68235294120000001" alpha="1" colorSpace="calibratedRGB"/>
|
<color key="tintColor" red="0.2784313725" green="0.80392156859999997" blue="0.68235294120000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||||
</document>
|
</document>
|
||||||
|
|||||||
@ -209,7 +209,7 @@ extension NetworksTableViewController: UITableViewDataSource {
|
|||||||
cell = (self.tableView.dequeueReusableCellWithIdentifier("etsy", forIndexPath: indexPath) as! EtsyTableViewCell)
|
cell = (self.tableView.dequeueReusableCellWithIdentifier("etsy", forIndexPath: indexPath) as! EtsyTableViewCell)
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
//loads network cell for ebay
|
//loads network cell for facebook
|
||||||
cell = (self.tableView.dequeueReusableCellWithIdentifier("facebook", forIndexPath: indexPath) as! FBTableViewCell)
|
cell = (self.tableView.dequeueReusableCellWithIdentifier("facebook", forIndexPath: indexPath) as! FBTableViewCell)
|
||||||
|
|
||||||
break
|
break
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user