mirror of
https://github.com/hmalik144/ShopInventory_iOS.git
synced 2025-12-10 03:05:31 +00:00
first commit
This commit is contained in:
35
InventoryApp/AddItemViewController.swift
Normal file
35
InventoryApp/AddItemViewController.swift
Normal file
@@ -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.
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
@@ -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" : {
|
||||
|
||||
9
InventoryApp/Database.swift
Normal file
9
InventoryApp/Database.swift
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// Database.swift
|
||||
// InventoryApp
|
||||
//
|
||||
// Created by h_mal on 29/08/2018.
|
||||
// Copyright © 2018 h_mal. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
4
InventoryApp/InventoryApp-Bridging-Header.h
Normal file
4
InventoryApp/InventoryApp-Bridging-Header.h
Normal file
@@ -0,0 +1,4 @@
|
||||
//
|
||||
// Use this file to import your target's public headers that you would like to expose to Swift.
|
||||
//
|
||||
|
||||
9
InventoryApp/Item.swift
Normal file
9
InventoryApp/Item.swift
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// Item.swift
|
||||
// InventoryApp
|
||||
//
|
||||
// Created by h_mal on 03/09/2018.
|
||||
// Copyright © 2018 h_mal. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
24
InventoryApp/MenuTableViewCell.swift
Normal file
24
InventoryApp/MenuTableViewCell.swift
Normal file
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
9
InventoryApp/PopupViewController.swift
Normal file
9
InventoryApp/PopupViewController.swift
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// PopupViewController.swift
|
||||
// InventoryApp
|
||||
//
|
||||
// Created by h_mal on 29/08/2018.
|
||||
// Copyright © 2018 h_mal. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
9
InventoryApp/SQlite.m
Normal file
9
InventoryApp/SQlite.m
Normal file
@@ -0,0 +1,9 @@
|
||||
//
|
||||
// SQlite.m
|
||||
// InventoryApp
|
||||
//
|
||||
// Created by h_mal on 25/08/2018.
|
||||
// Copyright © 2018 h_mal. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
24
InventoryApp/TableViewCell.swift
Normal file
24
InventoryApp/TableViewCell.swift
Normal file
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
95
InventoryApp/TableViewController.swift
Normal file
95
InventoryApp/TableViewController.swift
Normal file
@@ -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.
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
35
InventoryApp/tableCellViewController.swift
Normal file
35
InventoryApp/tableCellViewController.swift
Normal file
@@ -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.
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user