mirror of
https://bitbucket.org/vendoo/vendoo_v1.0.git
synced 2025-12-25 03:37:39 +00:00
Fix bug with multi image retrieval and tab bar navigation
added ability to cancel adding a new listing and now hiding tab bar when starting the listing process. All images are now being downloaded from each listing
This commit is contained in:
parent
5abcd1130c
commit
fd6c166d12
BIN
Pods/.DS_Store
generated
vendored
BIN
Pods/.DS_Store
generated
vendored
Binary file not shown.
BIN
Pods/Locksmith/.DS_Store
generated
vendored
Normal file
BIN
Pods/Locksmith/.DS_Store
generated
vendored
Normal file
Binary file not shown.
BIN
Pods/Locksmith/Source/.DS_Store
generated
vendored
Normal file
BIN
Pods/Locksmith/Source/.DS_Store
generated
vendored
Normal file
Binary file not shown.
Binary file not shown.
@ -6,15 +6,141 @@
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "Yes"
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||
timestampString = "490072640.74786"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "282"
|
||||
endingLineNumber = "282"
|
||||
landmarkName = "parser(_:foundCharacters:)"
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||
timestampString = "490072640.74786"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "62"
|
||||
endingLineNumber = "62"
|
||||
landmarkName = "init()"
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||
timestampString = "490072640.74786"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "34"
|
||||
endingLineNumber = "34"
|
||||
landmarkName = "EbayWebServiceManager"
|
||||
landmarkType = "3">
|
||||
<Locations>
|
||||
<Location
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
symbolName = "globalinit_33_8394C46C91B3EB4DFF6B9C480CFFF5C9_func0"
|
||||
moduleName = "Vendoo"
|
||||
usesParentBreakpointCondition = "Yes"
|
||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EbayWebServiceManager.swift"
|
||||
timestampString = "490175070.430107"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "34"
|
||||
endingLineNumber = "34"
|
||||
offsetFromSymbolStart = "4">
|
||||
</Location>
|
||||
<Location
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
symbolName = "Vendoo.EbayWebServiceManager.settingsDictionary.unsafeMutableAddressor : Swift.Dictionary<Swift.String, Swift.AnyObject>"
|
||||
moduleName = "Vendoo"
|
||||
usesParentBreakpointCondition = "Yes"
|
||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EbayWebServiceManager.swift"
|
||||
timestampString = "490175070.431334"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "34"
|
||||
endingLineNumber = "34"
|
||||
offsetFromSymbolStart = "4">
|
||||
</Location>
|
||||
<Location
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
symbolName = "static Vendoo.EbayWebServiceManager.settingsDictionary.getter : Swift.Dictionary<Swift.String, Swift.AnyObject>"
|
||||
moduleName = "Vendoo"
|
||||
usesParentBreakpointCondition = "Yes"
|
||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EbayWebServiceManager.swift"
|
||||
timestampString = "490175070.431628"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "34"
|
||||
endingLineNumber = "34"
|
||||
offsetFromSymbolStart = "94">
|
||||
</Location>
|
||||
<Location
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
symbolName = "static Vendoo.EbayWebServiceManager.settingsDictionary.setter : Swift.Dictionary<Swift.String, Swift.AnyObject>"
|
||||
moduleName = "Vendoo"
|
||||
usesParentBreakpointCondition = "Yes"
|
||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/EbayWebServiceManager.swift"
|
||||
timestampString = "490175070.434167"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "34"
|
||||
endingLineNumber = "34"
|
||||
offsetFromSymbolStart = "186">
|
||||
</Location>
|
||||
</Locations>
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||
timestampString = "490072640.74786"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "56"
|
||||
endingLineNumber = "56"
|
||||
landmarkName = "init()"
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "Vendoo/EtsyRESTAPIManager.swift"
|
||||
timestampString = "488718169.429055"
|
||||
timestampString = "490072640.74786"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "188"
|
||||
endingLineNumber = "188"
|
||||
startingLineNumber = "205"
|
||||
endingLineNumber = "205"
|
||||
landmarkName = "authorizeApp(_:)"
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
@ -22,16 +148,80 @@
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "Yes"
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "Vendoo/NetworksTableViewController.swift"
|
||||
timestampString = "488937324.611765"
|
||||
filePath = "Vendoo/EtsyRESTAPIManager.swift"
|
||||
timestampString = "490072640.74786"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "722"
|
||||
endingLineNumber = "722"
|
||||
landmarkName = "toggleAuth(_:)"
|
||||
startingLineNumber = "201"
|
||||
endingLineNumber = "201"
|
||||
landmarkName = "authorizeApp(_:)"
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "Vendoo/EtsyRESTAPIManager.swift"
|
||||
timestampString = "490072640.74786"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "218"
|
||||
endingLineNumber = "218"
|
||||
landmarkName = "authorizeApp(_:)"
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "Vendoo/EtsySettingsViewController.swift"
|
||||
timestampString = "490074155.45937"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "33"
|
||||
endingLineNumber = "33"
|
||||
landmarkName = "viewDidLoad()"
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "Vendoo/HomeViewController.swift"
|
||||
timestampString = "490366185.766714"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "52"
|
||||
endingLineNumber = "52"
|
||||
landmarkName = "viewDidLoad()"
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
<BreakpointProxy
|
||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||
<BreakpointContent
|
||||
shouldBeEnabled = "No"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "Vendoo/HomeViewController.swift"
|
||||
timestampString = "490366185.766714"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "69"
|
||||
endingLineNumber = "69"
|
||||
landmarkName = "viewDidLoad()"
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
@ -41,13 +231,13 @@
|
||||
shouldBeEnabled = "Yes"
|
||||
ignoreCount = "0"
|
||||
continueAfterRunningActions = "No"
|
||||
filePath = "Vendoo/NetworksTableViewController.swift"
|
||||
timestampString = "488937324.611765"
|
||||
filePath = "Vendoo/HomeViewController.swift"
|
||||
timestampString = "490366185.766714"
|
||||
startingColumnNumber = "9223372036854775807"
|
||||
endingColumnNumber = "9223372036854775807"
|
||||
startingLineNumber = "737"
|
||||
endingLineNumber = "737"
|
||||
landmarkName = "toggleAuth(_:)"
|
||||
startingLineNumber = "73"
|
||||
endingLineNumber = "73"
|
||||
landmarkName = "viewDidLoad()"
|
||||
landmarkType = "5">
|
||||
</BreakpointContent>
|
||||
</BreakpointProxy>
|
||||
|
||||
@ -30,38 +30,78 @@ class HomeViewController: UITabBarController {
|
||||
if listingDict != nil {
|
||||
dispatch_async(dispatch_get_main_queue(), {
|
||||
|
||||
for (keys, values) in listingDict! {
|
||||
|
||||
|
||||
|
||||
for (key, values) in listingDict! {
|
||||
let serviceGroup: dispatch_group_t = dispatch_group_create()
|
||||
//@TODO: this is now getting all images but it is only displaying the last retrieved listings's set of images
|
||||
/*dispatch_group_notify(countGroup, dispatch_get_main_queue(), {
|
||||
print(HomeViewController.completionCount)
|
||||
HomeViewController.completionCount += 1
|
||||
if(HomeViewController.completionCount == 4){
|
||||
|
||||
HomeViewController.completionCount = 0
|
||||
dispatch_group_leave(serviceGroup)
|
||||
}
|
||||
})*/
|
||||
self.firebaseManager.ref.observeSingleEventOfType(.Value, withBlock: { snapshot in
|
||||
|
||||
let databaseDict = snapshot.value as! [String : AnyObject]
|
||||
|
||||
let storageRef = self.firebaseManager.storage.referenceForURL((databaseDict["image_storage"] as? String)!)
|
||||
let listingImage = storageRef.child("images/\(keys).jpg")
|
||||
let mainListingImage = storageRef.child("images/\(key)/main.jpg")
|
||||
|
||||
|
||||
//@TODO: add in logic to programmatically retrieve each stored image and store in listing object as a way to display each image
|
||||
listingImage.dataWithMaxSize(10 * 1024 * 1024, completion: {
|
||||
(data, error) -> Void in
|
||||
dispatch_group_enter(serviceGroup)
|
||||
mainListingImage.dataWithMaxSize(10 * 1024 * 1024, completion: {
|
||||
(dataMain, error) -> Void in
|
||||
|
||||
if(error != nil){
|
||||
print("problem retrieving items")
|
||||
}else{
|
||||
|
||||
let listingInfo = values as? [String : AnyObject]
|
||||
let imageData = UIImage(data: data!)
|
||||
self.userListings.append(
|
||||
Listing(itemTitle: (listingInfo!["listingTitle"] as? String)!,
|
||||
itemCategory: listingInfo!["listingCategory"] as? String,
|
||||
itemPrice: listingInfo!["listingPrice"] as? String,
|
||||
itemDescription: listingInfo!["listingDescription"] as? String,
|
||||
itemImage: imageData!,
|
||||
isDraftListing: (listingInfo!["isListingDraft"] as? Bool)!,
|
||||
itemKey: keys,
|
||||
networksSellingOn: (listingInfo!["networks"] as? Dictionary<String, Bool>)!
|
||||
))
|
||||
let mainImage = UIImage(data: dataMain!)
|
||||
var listingImages: [UIImage] = [mainImage!]
|
||||
var count = 0
|
||||
//Get supporting images
|
||||
for i in 2...5 {
|
||||
let supportListingImg1 = storageRef.child("images/\(key)/\(i).jpg")
|
||||
supportListingImg1.dataWithMaxSize(10 * 1024 * 1024, completion: {
|
||||
(data1, error) -> Void in
|
||||
|
||||
if(error != nil){
|
||||
print("support image \(i - 1) for key, \(key), does not exist")
|
||||
}else{
|
||||
listingImages.append(UIImage(data: data1!)!)
|
||||
}
|
||||
print(key)
|
||||
count+=1
|
||||
if(count == 4){
|
||||
dispatch_group_leave(serviceGroup)
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
dispatch_group_notify(serviceGroup, dispatch_get_main_queue(), {
|
||||
print(listingImages.count)
|
||||
let listingInfo = values as? [String : AnyObject]
|
||||
self.userListings.append(
|
||||
Listing(itemTitle: (listingInfo!["listingTitle"] as? String)!,
|
||||
itemCategory: listingInfo!["listingCategory"] as? String,
|
||||
itemPrice: listingInfo!["listingPrice"] as? String,
|
||||
itemDescription: listingInfo!["listingDescription"] as? String,
|
||||
itemImages: listingImages,
|
||||
isDraftListing: (listingInfo!["isListingDraft"] as? Bool)!,
|
||||
itemKey: key,
|
||||
networksSellingOn: (listingInfo!["networks"] as? Dictionary<String, Bool>)!
|
||||
))
|
||||
|
||||
NSNotificationCenter.defaultCenter().postNotificationName("finished_fetching_listings", object: nil)
|
||||
})
|
||||
|
||||
NSNotificationCenter.defaultCenter().postNotificationName("finished_fetching_listings", object: nil)
|
||||
|
||||
|
||||
}
|
||||
@ -82,21 +122,22 @@ class HomeViewController: UITabBarController {
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
override func didReceiveMemoryWarning() {
|
||||
super.didReceiveMemoryWarning()
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// 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.
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -39,9 +39,9 @@ class ItemImagePickerViewController: UIViewController {
|
||||
private var imageIndex: Int!
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
// Do any additional setup after loading the view.
|
||||
|
||||
// Do any additional setup after loading the view.
|
||||
self.tabBarController?.tabBar.hidden = true
|
||||
|
||||
// Connect data:
|
||||
self.categoryPicker.delegate = self
|
||||
@ -66,22 +66,25 @@ class ItemImagePickerViewController: UIViewController {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
override func didReceiveMemoryWarning() {
|
||||
super.didReceiveMemoryWarning()
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
|
||||
|
||||
override func viewWillAppear(animated: Bool) {
|
||||
super.viewWillAppear(animated)
|
||||
self.tabBarController?.tabBar.hidden = true
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
//MARK: - Navigation methods
|
||||
extension ItemImagePickerViewController {
|
||||
|
||||
|
||||
|
||||
// In a storyboard-based application, you will often want to do a little preparation before navigation
|
||||
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
|
||||
@ -150,7 +153,7 @@ extension ItemImagePickerViewController: UIImagePickerControllerDelegate, UINavi
|
||||
|
||||
func imagePickerControllerDidCancel(picker: UIImagePickerController) {
|
||||
dismissViewControllerAnimated(true, completion: nil)
|
||||
|
||||
|
||||
}
|
||||
|
||||
func takePicture(sender: UITapGestureRecognizer ){
|
||||
@ -174,7 +177,7 @@ extension ItemImagePickerViewController: UIImagePickerControllerDelegate, UINavi
|
||||
alert.addAction(UIAlertAction(title: "OK", style: .Default, handler:{(action: UIAlertAction!) in alert.dismissViewControllerAnimated(true, completion: nil)}))
|
||||
|
||||
self.presentViewController(alert, animated: true, completion: nil)
|
||||
|
||||
|
||||
}
|
||||
break
|
||||
|
||||
@ -240,19 +243,19 @@ extension ItemImagePickerViewController: UIImagePickerControllerDelegate, UINavi
|
||||
}
|
||||
}
|
||||
/*
|
||||
for (UIView *view in self.view.subviews)
|
||||
{
|
||||
if ([view isKindOfClass:[UIImageView class]] && CGRectContainsPoint(view.frame, location))
|
||||
{
|
||||
UIImageView *image = (UIImageView *) view;
|
||||
|
||||
// ok, now you know which image you received your long press for
|
||||
// do whatever you wanted on it at this point
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
*/
|
||||
for (UIView *view in self.view.subviews)
|
||||
{
|
||||
if ([view isKindOfClass:[UIImageView class]] && CGRectContainsPoint(view.frame, location))
|
||||
{
|
||||
UIImageView *image = (UIImageView *) view;
|
||||
|
||||
// ok, now you know which image you received your long press for
|
||||
// do whatever you wanted on it at this point
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
@ -286,7 +289,7 @@ extension ItemImagePickerViewController: UIImagePickerControllerDelegate, UINavi
|
||||
captureMenu.addAction(cancelAction)
|
||||
self.presentViewController(captureMenu, animated: true, completion: nil)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -294,7 +297,7 @@ extension ItemImagePickerViewController: UIImagePickerControllerDelegate, UINavi
|
||||
|
||||
//MARK: - UIPickerViewDelegate
|
||||
extension ItemImagePickerViewController: UIPickerViewDelegate {
|
||||
|
||||
|
||||
// Catpure the picker view selection
|
||||
func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
|
||||
// This method is triggered whenever the user makes a change to the picker selection.
|
||||
@ -326,7 +329,7 @@ extension ItemImagePickerViewController: UIPickerViewDataSource {
|
||||
}
|
||||
|
||||
extension ItemImagePickerViewController: UITextViewDelegate {
|
||||
|
||||
|
||||
func textViewDidBeginEditing(textView: UITextView) {
|
||||
if (textView.text! == "Description") {
|
||||
textView.text = ""
|
||||
@ -360,7 +363,7 @@ extension ItemImagePickerViewController: UITextViewDelegate {
|
||||
}
|
||||
|
||||
extension ItemImagePickerViewController: UITextFieldDelegate {
|
||||
|
||||
|
||||
func textFieldShouldReturn(textField: UITextField) -> Bool {
|
||||
self.view.endEditing(true)
|
||||
return false
|
||||
@ -381,7 +384,7 @@ extension ItemImagePickerViewController: UITextFieldDelegate {
|
||||
|
||||
//Mark: - IBActions
|
||||
extension ItemImagePickerViewController {
|
||||
|
||||
|
||||
@IBAction func chooseSellerNetworks(sender: AnyObject) {
|
||||
|
||||
//segue to networks selection
|
||||
@ -404,20 +407,20 @@ extension ItemImagePickerViewController {
|
||||
var counter = -1
|
||||
for bool in self.itemImagesSelections {
|
||||
if bool {
|
||||
counter += 1
|
||||
counter += 1
|
||||
}else {
|
||||
break
|
||||
}
|
||||
}
|
||||
let listing: Dictionary<String, AnyObject?> = ["listingID": newListingRef!.key,
|
||||
"seller email": (NSUserDefaults.standardUserDefaults().objectForKey("email") as? String)!,
|
||||
"listingTitle": self.itemName.text,
|
||||
"listingPrice": self.itemPrice.text,
|
||||
"listingCategory": category,
|
||||
"listingDescription": self.itemDescription.text,
|
||||
"numberOfSupportingImages" : counter,
|
||||
"isListingDraft": true,
|
||||
"networks": ["areNetworksChosen": false]]
|
||||
"seller email": (NSUserDefaults.standardUserDefaults().objectForKey("email") as? String)!,
|
||||
"listingTitle": self.itemName.text,
|
||||
"listingPrice": self.itemPrice.text,
|
||||
"listingCategory": category,
|
||||
"listingDescription": self.itemDescription.text,
|
||||
"numberOfSupportingImages" : counter,
|
||||
"isListingDraft": true,
|
||||
"networks": ["areNetworksChosen": false]]
|
||||
|
||||
(self.tabBarController as? HomeViewController)?.firebaseManager.ref.observeSingleEventOfType(.Value, withBlock: { snapshot in
|
||||
|
||||
@ -485,11 +488,11 @@ extension ItemImagePickerViewController {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@IBAction func cancelNewListing(sender: AnyObject) {
|
||||
//nil out all data user may have entered so that when they reopen new listing page
|
||||
//it initialized to a fresh screen.
|
||||
self.tabBarController?.selectedIndex = 1
|
||||
self.tabBarController?.selectedIndex = 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -28,6 +28,8 @@ class ItemTableViewController: UIViewController {
|
||||
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
|
||||
// self.navigationItem.rightBarButtonItem = self.editButtonItem()
|
||||
|
||||
self.tabBarController?.tabBar.hidden = false
|
||||
|
||||
//set delegates
|
||||
self.itemTable.dataSource = self
|
||||
self.itemTable.delegate = self
|
||||
@ -43,6 +45,11 @@ class ItemTableViewController: UIViewController {
|
||||
|
||||
}
|
||||
|
||||
|
||||
override func viewWillAppear(animated: Bool) {
|
||||
super.viewWillAppear(animated)
|
||||
self.tabBarController?.tabBar.hidden = false
|
||||
}
|
||||
override func didReceiveMemoryWarning() {
|
||||
super.didReceiveMemoryWarning()
|
||||
// Dispose of any resources that can be recreated.
|
||||
@ -94,7 +101,7 @@ extension ItemTableViewController: UITableViewDataSource{
|
||||
// Configure the cell...
|
||||
//for each listing cell generated need to find the marketplaces it belongs to, the listing price, the name of the item, the status of the item, and the item image.
|
||||
//Once these objects are retrieved, access the ItemCell properties and manipulate as needed
|
||||
cell.itemImage.image = (self.tabBarController as? HomeViewController)?.userListings[indexPath.row].image
|
||||
cell.itemImage.image = (self.tabBarController as? HomeViewController)?.userListings[indexPath.row].images[0] //come back
|
||||
cell.itemName.text = (self.tabBarController as? HomeViewController)!.userListings[indexPath.row].title
|
||||
cell.itemPrice.text = (self.tabBarController as? HomeViewController)!.userListings[indexPath.row].price
|
||||
|
||||
|
||||
@ -16,18 +16,18 @@ class Listing : NSObject {
|
||||
var price: String!
|
||||
var desc: String!
|
||||
var isDraft: Bool!
|
||||
var image: UIImage!
|
||||
var images: [UIImage]!
|
||||
var key: String!
|
||||
var networks: Dictionary<String, Bool>!
|
||||
|
||||
init(itemTitle:String, itemCategory: String!, itemPrice: String!, itemDescription: String!, itemImage: UIImage, isDraftListing: Bool, itemKey: String, networksSellingOn: Dictionary<String, Bool>){
|
||||
init(itemTitle:String, itemCategory: String!, itemPrice: String!, itemDescription: String!, itemImages: [UIImage], isDraftListing: Bool, itemKey: String, networksSellingOn: Dictionary<String, Bool>){
|
||||
|
||||
self.title = itemTitle
|
||||
self.category = itemCategory
|
||||
self.price = itemPrice
|
||||
self.desc = itemDescription
|
||||
self.isDraft = isDraftListing
|
||||
self.image = itemImage
|
||||
self.images = itemImages
|
||||
self.key = itemKey
|
||||
self.networks = networksSellingOn
|
||||
|
||||
|
||||
@ -215,7 +215,7 @@
|
||||
<rect key="frame" x="147" y="408" width="80" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -329,7 +329,7 @@
|
||||
<rect key="frame" x="8" y="139" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<pickerView hidden="YES" contentMode="scaleToFill" id="3Ch-bX-pSF" userLabel="DELETE CategoryPicker">
|
||||
@ -339,7 +339,7 @@
|
||||
<color key="tintColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</pickerView>
|
||||
<button hidden="YES" opaque="NO" contentMode="scaleToFill" enabled="NO" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="w7U-gh-R0T">
|
||||
<rect key="frame" x="0.0" y="235" width="375" height="53"/>
|
||||
<rect key="frame" x="0.0" y="242" width="375" height="46"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" red="1" green="0.674443664" blue="0.43274429120000002" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<state key="normal" title="DELETE Select Your Marketplaces">
|
||||
@ -366,7 +366,7 @@
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="$" minimumFontSize="17" id="PQC-e5-VHo" userLabel="price">
|
||||
<rect key="frame" x="8" y="81" width="88" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
|
||||
<color key="backgroundColor" red="0.93725490199999995" green="0.93725490199999995" blue="0.95686274510000002" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<textInputTraits key="textInputTraits" enablesReturnKeyAutomatically="YES"/>
|
||||
</textField>
|
||||
@ -380,7 +380,7 @@
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="1" minimumFontSize="17" id="otX-Vg-NmH" userLabel="price">
|
||||
<rect key="frame" x="136" y="81" width="88" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
|
||||
<color key="backgroundColor" red="0.93725490199999995" green="0.93725490199999995" blue="0.95686274510000002" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<textInputTraits key="textInputTraits" enablesReturnKeyAutomatically="YES"/>
|
||||
</textField>
|
||||
@ -399,7 +399,7 @@
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" text="Description" textAlignment="natural" id="osz-kc-aer">
|
||||
<rect key="frame" x="8" y="132" width="359" height="102"/>
|
||||
<rect key="frame" x="8" y="132" width="359" height="137"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES"/>
|
||||
<color key="backgroundColor" red="0.93725490199999995" green="0.93725490199999995" blue="0.95686274510000002" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
|
||||
@ -412,7 +412,7 @@
|
||||
</subviews>
|
||||
</scrollView>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="qOy-lJ-KYo">
|
||||
<rect key="frame" x="0.0" y="582" width="375" height="44"/>
|
||||
<rect key="frame" x="0.0" y="614" width="375" height="53"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" red="0.2784313725" green="0.80392156859999997" blue="0.68235294120000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<state key="normal" title="Choose Category">
|
||||
@ -617,7 +617,7 @@
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>
|
||||
<color key="backgroundColor" red="0.93725490199999995" green="0.93725490199999995" blue="0.95686274510000002" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</tableViewCellContentView>
|
||||
</tableViewCell>
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="X0o-qm-Gtd">
|
||||
@ -724,7 +724,7 @@
|
||||
<rect key="frame" x="108" y="96" width="93" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" id="sHy-Qg-FkI">
|
||||
@ -1046,7 +1046,7 @@
|
||||
<rect key="frame" x="108" y="96" width="93" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" id="2rb-Np-kBa">
|
||||
@ -1074,7 +1074,7 @@
|
||||
<color key="backgroundColor" red="0.2784313725" green="0.80392156859999997" blue="0.68235294120000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</view>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="userid" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="od3-l1-8KU">
|
||||
<rect key="frame" x="108" y="125" width="55" height="21"/>
|
||||
<rect key="frame" x="108" y="125" width="236" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
|
||||
@ -1092,11 +1092,74 @@
|
||||
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</state>
|
||||
</button>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Who Made it:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="MUw-Sn-Kwa">
|
||||
<rect key="frame" x="44" y="207" width="131" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Are You The Supplier:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="wmS-xW-WMT">
|
||||
<rect key="frame" x="44" y="258" width="166" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Product Age:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="Dal-KD-rJh">
|
||||
<rect key="frame" x="44" y="313" width="100" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="Mn3-U1-NcA">
|
||||
<rect key="frame" x="234" y="201" width="110" height="33"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" red="0.2784313725" green="0.80392156859999997" blue="0.68235294120000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<state key="normal" title="I Did">
|
||||
<color key="titleColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="selectListingType:" destination="0mG-wi-VDO" eventType="touchUpInside" id="ZLt-jg-ejc"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="JJB-bg-Nz0">
|
||||
<rect key="frame" x="234" y="252" width="110" height="33"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" red="0.2784313725" green="0.80392156859999997" blue="0.68235294120000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<state key="normal" title="Yes">
|
||||
<color key="titleColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="selectCondition:" destination="0mG-wi-VDO" eventType="touchUpInside" id="TA3-hq-Ojy"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="eQk-Ad-zNj">
|
||||
<rect key="frame" x="234" y="307" width="110" height="33"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" red="0.2784313725" green="0.80392156859999997" blue="0.68235294120000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<state key="normal" title="'10-'16">
|
||||
<color key="titleColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="selectListingDuration:" destination="0mG-wi-VDO" eventType="touchUpInside" id="ZHu-KF-2CP"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
<navigationItem key="navigationItem" id="jqG-yn-adU"/>
|
||||
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina47"/>
|
||||
<connections>
|
||||
<outlet property="isSupplierBtn" destination="JJB-bg-Nz0" id="Ach-D1-ceR"/>
|
||||
<outlet property="productAgeBtn" destination="eQk-Ad-zNj" id="A1o-GM-xVA"/>
|
||||
<outlet property="userID" destination="od3-l1-8KU" id="8C0-Iu-jF9"/>
|
||||
<outlet property="whoMadeBtn" destination="Mn3-U1-NcA" id="cxl-Gl-Icv"/>
|
||||
</connections>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="aJW-kP-VJj" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
@ -1124,8 +1187,17 @@
|
||||
</navigationItem>
|
||||
</items>
|
||||
</navigationBar>
|
||||
<segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" id="X2D-np-ma4">
|
||||
<rect key="frame" x="0.0" y="44" width="375" height="29"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<segments>
|
||||
<segment title="Selling"/>
|
||||
<segment title="Sold"/>
|
||||
</segments>
|
||||
<color key="tintColor" red="0.2784313725" green="0.80392156859999997" blue="0.68235294120000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</segmentedControl>
|
||||
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="123" sectionHeaderHeight="1" sectionFooterHeight="28" id="Thg-pb-lhN">
|
||||
<rect key="frame" x="0.0" y="80" width="375" height="543"/>
|
||||
<rect key="frame" x="0.0" y="72" width="375" height="543"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<prototypes>
|
||||
@ -1256,15 +1328,6 @@
|
||||
</tableViewCell>
|
||||
</prototypes>
|
||||
</tableView>
|
||||
<segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" id="X2D-np-ma4">
|
||||
<rect key="frame" x="0.0" y="44" width="375" height="29"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<segments>
|
||||
<segment title="Selling"/>
|
||||
<segment title="Sold"/>
|
||||
</segments>
|
||||
<color key="tintColor" red="0.2784313725" green="0.80392156859999997" blue="0.68235294120000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</segmentedControl>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</view>
|
||||
@ -1317,7 +1380,7 @@
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="298"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="separatorColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="separatorColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<color key="sectionIndexBackgroundColor" red="1" green="0.674443664" blue="0.43274429120000002" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<prototypes>
|
||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="User_Cell" id="hae-qr-YYv">
|
||||
@ -1535,7 +1598,7 @@
|
||||
<rect key="frame" x="8" y="11" width="191" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -1552,7 +1615,7 @@
|
||||
<rect key="frame" x="8" y="11" width="326" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -1613,7 +1676,7 @@
|
||||
<rect key="frame" x="8" y="11" width="197" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -1630,7 +1693,7 @@
|
||||
<rect key="frame" x="8" y="11" width="197" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -1721,7 +1784,7 @@
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<state key="normal" title="Settings"/>
|
||||
<connections>
|
||||
<segue destination="0mG-wi-VDO" kind="modal" id="LFw-jY-Swv"/>
|
||||
<segue destination="0mG-wi-VDO" kind="modal" identifier="EbaySettingsSegue" id="LFw-jY-Swv"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" id="3du-9s-yuN">
|
||||
@ -1953,7 +2016,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -1970,7 +2033,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -1987,7 +2050,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2004,7 +2067,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2021,7 +2084,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2038,7 +2101,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2055,7 +2118,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2072,7 +2135,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2089,7 +2152,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2106,7 +2169,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2123,7 +2186,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2140,7 +2203,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2157,7 +2220,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2174,7 +2237,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2191,7 +2254,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2208,7 +2271,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2225,7 +2288,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2242,7 +2305,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2259,7 +2322,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2276,7 +2339,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2293,7 +2356,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2310,7 +2373,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2327,7 +2390,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2344,7 +2407,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2361,7 +2424,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2378,7 +2441,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2395,7 +2458,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2412,7 +2475,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2429,7 +2492,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2446,7 +2509,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2463,7 +2526,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2480,7 +2543,7 @@
|
||||
<rect key="frame" x="8" y="11" width="359" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
@ -2550,7 +2613,7 @@
|
||||
<rect key="frame" x="108" y="96" width="93" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="userid" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="8gc-eb-2o3">
|
||||
@ -2572,49 +2635,49 @@
|
||||
<rect key="frame" x="20" y="194" width="131" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="eBay Site:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="qpg-ha-0Bd">
|
||||
<rect key="frame" x="20" y="352" width="131" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Shipping:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="Nph-Wo-opO">
|
||||
<rect key="frame" x="20" y="412" width="131" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Payment:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="gjJ-23-re0">
|
||||
<rect key="frame" x="20" y="469" width="131" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Return:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="F49-LH-ZsN">
|
||||
<rect key="frame" x="20" y="524" width="123" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Condition:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="lYE-Up-DAG">
|
||||
<rect key="frame" x="20" y="245" width="131" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Listing Duration:" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="Vhg-W4-7dp">
|
||||
<rect key="frame" x="20" y="300" width="131" height="21"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="s9M-m5-d6X">
|
||||
@ -2625,15 +2688,21 @@
|
||||
<state key="normal" title="Buy Now">
|
||||
<color key="titleColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="selectListingType:" destination="0mG-wi-VDO" eventType="touchUpInside" id="1J1-0S-GNp"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="f5C-p7-CES">
|
||||
<rect key="frame" x="168" y="241" width="110" height="30"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" red="0.2784313725" green="0.80392156859999997" blue="0.68235294120000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<state key="normal" title="New">
|
||||
<state key="normal" title="New (Other)">
|
||||
<color key="titleColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="selectCondition:" destination="0mG-wi-VDO" eventType="touchUpInside" id="79X-J4-WQI"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="3OY-n7-lDa">
|
||||
<rect key="frame" x="168" y="296" width="110" height="30"/>
|
||||
@ -2643,6 +2712,9 @@
|
||||
<state key="normal" title="7 Days">
|
||||
<color key="titleColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="selectListingDuration:" destination="0mG-wi-VDO" eventType="touchUpInside" id="aQG-2J-yWJ"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="a0d-FF-rpe">
|
||||
<rect key="frame" x="168" y="348" width="138" height="30"/>
|
||||
@ -2652,6 +2724,9 @@
|
||||
<state key="normal" title="United States">
|
||||
<color key="titleColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="selectEbaySite:" destination="0mG-wi-VDO" eventType="touchUpInside" id="3xU-gx-smU"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="XG1-wM-xf2">
|
||||
<rect key="frame" x="168" y="408" width="138" height="30"/>
|
||||
@ -2661,6 +2736,9 @@
|
||||
<state key="normal" title="FREE Shipping">
|
||||
<color key="titleColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="selectShipping:" destination="0mG-wi-VDO" eventType="touchUpInside" id="6le-7a-tKT"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="JSc-1s-MXk">
|
||||
<rect key="frame" x="168" y="465" width="110" height="30"/>
|
||||
@ -2670,6 +2748,9 @@
|
||||
<state key="normal" title="PayPal">
|
||||
<color key="titleColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="selectPayment:" destination="0mG-wi-VDO" eventType="touchUpInside" id="SHZ-3v-EV5"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="iLR-6e-adf">
|
||||
<rect key="frame" x="168" y="520" width="110" height="30"/>
|
||||
@ -2679,6 +2760,9 @@
|
||||
<state key="normal" title="No Returns">
|
||||
<color key="titleColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="selectReturnPolicy:" destination="0mG-wi-VDO" eventType="touchUpInside" id="38z-9h-9Yu"/>
|
||||
</connections>
|
||||
</button>
|
||||
<view contentMode="scaleToFill" id="rqG-y5-n6i">
|
||||
<rect key="frame" x="-162" y="112" width="210" height="88"/>
|
||||
@ -2690,6 +2774,16 @@
|
||||
</view>
|
||||
<navigationItem key="navigationItem" id="myF-tl-nhO"/>
|
||||
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina47"/>
|
||||
<connections>
|
||||
<outlet property="conditonBtn" destination="f5C-p7-CES" id="O9q-Te-07J"/>
|
||||
<outlet property="ebaySite" destination="a0d-FF-rpe" id="h7d-J9-jeI"/>
|
||||
<outlet property="listingDurationBtn" destination="3OY-n7-lDa" id="mYl-Ne-S18"/>
|
||||
<outlet property="listingTypeBtn" destination="s9M-m5-d6X" id="vfh-ci-Mg3"/>
|
||||
<outlet property="paymentBtn" destination="JSc-1s-MXk" id="5d8-vH-Ow4"/>
|
||||
<outlet property="returnPolicyBtn" destination="iLR-6e-adf" id="aKc-KQ-2YR"/>
|
||||
<outlet property="shippingBtn" destination="XG1-wM-xf2" id="ZNx-Ut-uqq"/>
|
||||
<outlet property="userID" destination="8gc-eb-2o3" id="cHW-MJ-MXz"/>
|
||||
</connections>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="Oyc-F3-ucg" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
@ -2717,10 +2811,10 @@
|
||||
<image name="start" width="50" height="50"/>
|
||||
</resources>
|
||||
<inferredMetricsTieBreakers>
|
||||
<segue reference="vCG-jU-HYF"/>
|
||||
<segue reference="syc-IR-LNQ"/>
|
||||
<segue reference="Ds4-LY-IRj"/>
|
||||
<segue reference="syc-IR-LNQ"/>
|
||||
<segue reference="Gnt-iE-cW9"/>
|
||||
<segue reference="vCG-jU-HYF"/>
|
||||
</inferredMetricsTieBreakers>
|
||||
<color key="tintColor" red="0.2784313725" green="0.80392156859999997" blue="0.68235294120000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||
</document>
|
||||
|
||||
@ -33,8 +33,8 @@ class NetworksTableViewController: UIViewController {
|
||||
private var firManager: FirebaseManager! = nil
|
||||
private var etsyManager: EtsyRESTAPIManager! = nil
|
||||
private var ebayManager: EbayWebServiceManager! = EbayWebServiceManager()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
@ -71,13 +71,19 @@ class NetworksTableViewController: UIViewController {
|
||||
self.networkToggleOrSelect = bool
|
||||
}
|
||||
|
||||
override func viewWillAppear(animated: Bool) {
|
||||
super.viewWillAppear(animated)
|
||||
if(!networkToggleOrSelect) {
|
||||
self.tabBarController?.tabBar.hidden = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//MARK: - class methods Network Selection when creating a new listing
|
||||
extension NetworksTableViewController {
|
||||
|
||||
func setListingDictionary(listingDictionary: Dictionary<String, AnyObject>){
|
||||
|
||||
func setListingDictionary(listingDictionary: Dictionary<String, AnyObject>){
|
||||
|
||||
self.itemListingDictionary = listingDictionary
|
||||
|
||||
}
|
||||
@ -150,10 +156,10 @@ extension NetworksTableViewController: UITableViewDataSource {
|
||||
|
||||
break
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else{
|
||||
|
||||
|
||||
//case where class is being used to authorize a network for the app to post on
|
||||
switch (indexPath.row){
|
||||
|
||||
@ -227,7 +233,7 @@ extension NetworksTableViewController: UITableViewDataSource {
|
||||
|
||||
//MARK: - IBActions
|
||||
extension NetworksTableViewController {
|
||||
|
||||
|
||||
@IBAction func showListingPreview(sender: AnyObject) {
|
||||
|
||||
self.performSegueWithIdentifier("ItemPreviewSegue", sender: self)
|
||||
@ -236,7 +242,7 @@ extension NetworksTableViewController {
|
||||
@IBAction func draftItem(sender: AnyObject) {
|
||||
|
||||
if((self.itemListingDictionary["pictures"]! as? [UIImageView])?[0].image == nil){
|
||||
|
||||
|
||||
let alert = UIAlertController(title: "Image Needed", message: "To save the listing as a draft, 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)}))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user