From a25ecc6d5871da42f87c8e97704c8c6117e647fb Mon Sep 17 00:00:00 2001 From: hmalik144 Date: Mon, 3 Sep 2018 02:32:25 -0700 Subject: [PATCH] first commit --- InventoryApp/AddItemViewController.swift | 35 +++++++ .../AppIcon.appiconset/Contents.json | 25 +++++ InventoryApp/Database.swift | 9 ++ InventoryApp/InventoryApp-Bridging-Header.h | 4 + InventoryApp/Item.swift | 9 ++ InventoryApp/MenuTableViewCell.swift | 24 +++++ InventoryApp/PopupViewController.swift | 9 ++ InventoryApp/SQlite.m | 9 ++ InventoryApp/TableViewCell.swift | 24 +++++ InventoryApp/TableViewController.swift | 95 +++++++++++++++++++ InventoryApp/tableCellViewController.swift | 35 +++++++ 11 files changed, 278 insertions(+) create mode 100644 InventoryApp/AddItemViewController.swift create mode 100644 InventoryApp/Database.swift create mode 100644 InventoryApp/InventoryApp-Bridging-Header.h create mode 100644 InventoryApp/Item.swift create mode 100644 InventoryApp/MenuTableViewCell.swift create mode 100644 InventoryApp/PopupViewController.swift create mode 100644 InventoryApp/SQlite.m create mode 100644 InventoryApp/TableViewCell.swift create mode 100644 InventoryApp/TableViewController.swift create mode 100644 InventoryApp/tableCellViewController.swift diff --git a/InventoryApp/AddItemViewController.swift b/InventoryApp/AddItemViewController.swift new file mode 100644 index 0000000..1f8d574 --- /dev/null +++ b/InventoryApp/AddItemViewController.swift @@ -0,0 +1,35 @@ +// +// AddItemViewController.swift +// InventoryApp +// +// Created by h_mal on 30/08/2018. +// Copyright © 2018 h_mal. All rights reserved. +// + +import UIKit + +class AddItemViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + + // Do any additional setup after loading the view. + } + + 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 prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destinationViewController. + // Pass the selected object to the new view controller. + } + */ + +} diff --git a/InventoryApp/Assets.xcassets/AppIcon.appiconset/Contents.json b/InventoryApp/Assets.xcassets/AppIcon.appiconset/Contents.json index 36d2c80..1d060ed 100644 --- a/InventoryApp/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/InventoryApp/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,5 +1,15 @@ { "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, { "idiom" : "iphone", "size" : "29x29", @@ -30,6 +40,16 @@ "size" : "60x60", "scale" : "3x" }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, { "idiom" : "ipad", "size" : "29x29", @@ -59,6 +79,11 @@ "idiom" : "ipad", "size" : "76x76", "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x" } ], "info" : { diff --git a/InventoryApp/Database.swift b/InventoryApp/Database.swift new file mode 100644 index 0000000..0a5a688 --- /dev/null +++ b/InventoryApp/Database.swift @@ -0,0 +1,9 @@ +// +// Database.swift +// InventoryApp +// +// Created by h_mal on 29/08/2018. +// Copyright © 2018 h_mal. All rights reserved. +// + +import Foundation diff --git a/InventoryApp/InventoryApp-Bridging-Header.h b/InventoryApp/InventoryApp-Bridging-Header.h new file mode 100644 index 0000000..1b2cb5d --- /dev/null +++ b/InventoryApp/InventoryApp-Bridging-Header.h @@ -0,0 +1,4 @@ +// +// Use this file to import your target's public headers that you would like to expose to Swift. +// + diff --git a/InventoryApp/Item.swift b/InventoryApp/Item.swift new file mode 100644 index 0000000..082fffd --- /dev/null +++ b/InventoryApp/Item.swift @@ -0,0 +1,9 @@ +// +// Item.swift +// InventoryApp +// +// Created by h_mal on 03/09/2018. +// Copyright © 2018 h_mal. All rights reserved. +// + +import Foundation diff --git a/InventoryApp/MenuTableViewCell.swift b/InventoryApp/MenuTableViewCell.swift new file mode 100644 index 0000000..6e00276 --- /dev/null +++ b/InventoryApp/MenuTableViewCell.swift @@ -0,0 +1,24 @@ +// +// MenuTableViewCell.swift +// InventoryApp +// +// Created by h_mal on 29/08/2018. +// Copyright © 2018 h_mal. All rights reserved. +// + +import UIKit + +class MenuTableViewCell: UITableViewCell { + + override func awakeFromNib() { + super.awakeFromNib() + // Initialization code + } + + override func setSelected(_ selected: Bool, animated: Bool) { + super.setSelected(selected, animated: animated) + + // Configure the view for the selected state + } + +} diff --git a/InventoryApp/PopupViewController.swift b/InventoryApp/PopupViewController.swift new file mode 100644 index 0000000..08b9e05 --- /dev/null +++ b/InventoryApp/PopupViewController.swift @@ -0,0 +1,9 @@ +// +// PopupViewController.swift +// InventoryApp +// +// Created by h_mal on 29/08/2018. +// Copyright © 2018 h_mal. All rights reserved. +// + +import Foundation diff --git a/InventoryApp/SQlite.m b/InventoryApp/SQlite.m new file mode 100644 index 0000000..2e4726d --- /dev/null +++ b/InventoryApp/SQlite.m @@ -0,0 +1,9 @@ +// +// SQlite.m +// InventoryApp +// +// Created by h_mal on 25/08/2018. +// Copyright © 2018 h_mal. All rights reserved. +// + +#import diff --git a/InventoryApp/TableViewCell.swift b/InventoryApp/TableViewCell.swift new file mode 100644 index 0000000..33e10d7 --- /dev/null +++ b/InventoryApp/TableViewCell.swift @@ -0,0 +1,24 @@ +// +// TableViewCell.swift +// InventoryApp +// +// Created by h_mal on 25/08/2018. +// Copyright © 2018 h_mal. All rights reserved. +// + +import UIKit + +class TableViewCell: UITableViewCell { + + override func awakeFromNib() { + super.awakeFromNib() + // Initialization code + } + + override func setSelected(_ selected: Bool, animated: Bool) { + super.setSelected(selected, animated: animated) + + // Configure the view for the selected state + } + +} diff --git a/InventoryApp/TableViewController.swift b/InventoryApp/TableViewController.swift new file mode 100644 index 0000000..9868b37 --- /dev/null +++ b/InventoryApp/TableViewController.swift @@ -0,0 +1,95 @@ +// +// TableViewController.swift +// InventoryApp +// +// Created by h_mal on 25/08/2018. +// Copyright © 2018 h_mal. All rights reserved. +// + +import UIKit + +class TableViewController: UITableViewController { + + override func viewDidLoad() { + super.viewDidLoad() + + // Uncomment the following line to preserve selection between presentations + // self.clearsSelectionOnViewWillAppear = false + + // Uncomment the following line to display an Edit button in the navigation bar for this view controller. + // self.navigationItem.rightBarButtonItem = self.editButtonItem() + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + + // MARK: - Table view data source + + override func numberOfSections(in tableView: UITableView) -> Int { + // #warning Incomplete implementation, return the number of sections + return 0 + } + + override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + // #warning Incomplete implementation, return the number of rows + return 0 + } + + /* + override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + let cell = tableView.dequeueReusableCell(withIdentifier: "reuseIdentifier", for: indexPath) + + // Configure the cell... + + return cell + } + */ + + /* + // Override to support conditional editing of the table view. + override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool { + // Return false if you do not want the specified item to be editable. + return true + } + */ + + /* + // Override to support editing the table view. + override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) { + if editingStyle == .delete { + // Delete the row from the data source + tableView.deleteRows(at: [indexPath], with: .fade) + } else if editingStyle == .insert { + // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view + } + } + */ + + /* + // Override to support rearranging the table view. + override func tableView(_ tableView: UITableView, moveRowAt fromIndexPath: IndexPath, to: IndexPath) { + + } + */ + + /* + // Override to support conditional rearranging of the table view. + override func tableView(_ tableView: UITableView, canMoveRowAt indexPath: IndexPath) -> Bool { + // Return false if you do not want the item to be re-orderable. + return true + } + */ + + /* + // MARK: - Navigation + + // In a storyboard-based application, you will often want to do a little preparation before navigation + override func prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destinationViewController. + // Pass the selected object to the new view controller. + } + */ + +} diff --git a/InventoryApp/tableCellViewController.swift b/InventoryApp/tableCellViewController.swift new file mode 100644 index 0000000..9c32acb --- /dev/null +++ b/InventoryApp/tableCellViewController.swift @@ -0,0 +1,35 @@ +// +// tableCellViewController.swift +// InventoryApp +// +// Created by h_mal on 25/08/2018. +// Copyright © 2018 h_mal. All rights reserved. +// + +import UIKit + +class tableCellViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + + // Do any additional setup after loading the view. + } + + 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 prepare(for segue: UIStoryboardSegue, sender: Any?) { + // Get the new view controller using segue.destinationViewController. + // Pass the selected object to the new view controller. + } + */ + +}