Skip to content

Commit

Permalink
initiated accounts table view controller
Browse files Browse the repository at this point in the history
  • Loading branch information
jogendra committed Mar 20, 2018
1 parent 360c3dd commit 181b5b7
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 18 deletions.
4 changes: 4 additions & 0 deletions Phimpme.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
408F1A0C20596AC500BDC313 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 408F1A0A20596AC500BDC313 /* Main.storyboard */; };
408F1A0E20596AC500BDC313 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 408F1A0D20596AC500BDC313 /* Assets.xcassets */; };
408F1A1120596AC500BDC313 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 408F1A0F20596AC500BDC313 /* LaunchScreen.storyboard */; };
40F899B72060F83700471ADF /* AccountsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40F899B62060F83700471ADF /* AccountsTableViewController.swift */; };
781992384A2F3D6CA211A031 /* Pods_Phimpme.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F2CB302E579EA703C318C373 /* Pods_Phimpme.framework */; };
/* End PBXBuildFile section */

Expand All @@ -23,6 +24,7 @@
408F1A0D20596AC500BDC313 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
408F1A1020596AC500BDC313 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
408F1A1220596AC500BDC313 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
40F899B62060F83700471ADF /* AccountsTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountsTableViewController.swift; sourceTree = "<group>"; };
991E11AE5F3F3F3A820B0968 /* Pods-Phimpme.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Phimpme.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Phimpme/Pods-Phimpme.debug.xcconfig"; sourceTree = "<group>"; };
F2CB302E579EA703C318C373 /* Pods_Phimpme.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Phimpme.framework; sourceTree = BUILT_PRODUCTS_DIR; };
FE33A7B2AAB0D992BB6E0FB7 /* Pods-Phimpme.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Phimpme.release.xcconfig"; path = "Pods/Target Support Files/Pods-Phimpme/Pods-Phimpme.release.xcconfig"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -75,6 +77,7 @@
408F1A0D20596AC500BDC313 /* Assets.xcassets */,
408F1A0F20596AC500BDC313 /* LaunchScreen.storyboard */,
408F1A1220596AC500BDC313 /* Info.plist */,
40F899B62060F83700471ADF /* AccountsTableViewController.swift */,
);
path = Phimpme;
sourceTree = "<group>";
Expand Down Expand Up @@ -218,6 +221,7 @@
buildActionMask = 2147483647;
files = (
408F1A0920596AC500BDC313 /* ViewController.swift in Sources */,
40F899B72060F83700471ADF /* AccountsTableViewController.swift in Sources */,
408F1A0720596AC500BDC313 /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
95 changes: 95 additions & 0 deletions Phimpme/AccountsTableViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
//
// AccountsTableViewController.swift
// Phimpme
//
// Created by JOGENDRA on 20/03/18.
// Copyright © 2018 Jogendra Singh. All rights reserved.
//

import UIKit

class AccountsTableViewController: 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.
}
*/

}
69 changes: 51 additions & 18 deletions Phimpme/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,6 @@
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Accounts-->
<scene sceneID="Idn-dE-WWS">
<objects>
<viewController id="03s-Iz-qrP" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="hFg-I4-odM">
<rect key="frame" x="0.0" y="0.0" width="375" height="603"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<viewLayoutGuide key="safeArea" id="YFO-v5-Upd"/>
</view>
<navigationItem key="navigationItem" title="Accounts" id="v0s-b2-0zR"/>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="zJx-Pe-Yjs" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="612" y="841.52923538230891"/>
</scene>
<!--Phimpme-->
<scene sceneID="jex-DL-ffg">
<objects>
Expand Down Expand Up @@ -83,7 +67,7 @@
</tabBar>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="selectedIndex">
<integer key="value" value="1"/>
<integer key="value" value="0"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
Expand Down Expand Up @@ -135,13 +119,62 @@
</navigationBar>
<nil name="viewControllers"/>
<connections>
<segue destination="03s-Iz-qrP" kind="relationship" relationship="rootViewController" id="WDP-Wx-JEf"/>
<segue destination="czY-4V-ulQ" kind="relationship" relationship="rootViewController" id="yyt-Dk-TIC"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="stP-gn-0lC" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-204" y="833"/>
</scene>
<!--Accounts-->
<scene sceneID="1ei-kj-3Pg">
<objects>
<tableViewController id="czY-4V-ulQ" customClass="AccountsTableViewController" customModule="Phimpme" customModuleProvider="target" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="static" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" id="z10-sx-NS5">
<rect key="frame" x="0.0" y="0.0" width="375" height="603"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<sections>
<tableViewSection id="ohb-YJ-g60">
<cells>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" id="xH3-C0-R0B">
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="xH3-C0-R0B" id="j8o-1P-SYu">
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
</tableViewCellContentView>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" id="ZVX-BR-EUD">
<rect key="frame" x="0.0" y="44" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="ZVX-BR-EUD" id="snP-8a-GYo">
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
</tableViewCellContentView>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" id="bP5-Iu-0ji">
<rect key="frame" x="0.0" y="88" width="375" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="bP5-Iu-0ji" id="n1H-6a-Nkf">
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
</tableViewCellContentView>
</tableViewCell>
</cells>
</tableViewSection>
</sections>
<connections>
<outlet property="dataSource" destination="czY-4V-ulQ" id="G8Q-Sf-zkk"/>
<outlet property="delegate" destination="czY-4V-ulQ" id="t0i-22-eTl"/>
</connections>
</tableView>
<navigationItem key="navigationItem" title="Accounts" id="DAT-4L-5IV"/>
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="y3b-cG-fEW" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="633" y="833"/>
</scene>
</scenes>
<resources>
<image name="account-fill" width="27" height="29"/>
Expand Down

0 comments on commit 181b5b7

Please sign in to comment.