Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-ios
Commits
fdf2aede
Commit
fdf2aede
authored
Apr 25, 2017
by
Zach Knox
Browse files
it might crash on launch now, but at least it's _trying_ to load data
parent
fd5b11e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
WhatsOpen/WhatsOpen/Base.lproj/Main.storyboard
View file @
fdf2aede
...
...
@@ -185,10 +185,17 @@
<outlet
property=
"DescriptionLabel"
destination=
"o7N-To-w50"
id=
"3gG-u7-Nv1"
/>
<outlet
property=
"LocationLabel"
destination=
"6QR-8Q-n4s"
id=
"0nB-ts-GYO"
/>
<outlet
property=
"OpenLabel"
destination=
"DEx-BH-Fun"
id=
"nmH-Gb-jwC"
/>
<outlet
property=
"nameLabel"
destination=
"6QR-8Q-n4s"
id=
"Nbh-eh-fDp"
/>
<outlet
property=
"openClosedLabel"
destination=
"DEx-BH-Fun"
id=
"9dP-3e-Hcy"
/>
<outlet
property=
"timeDescriptionLabel"
destination=
"o7N-To-w50"
id=
"gAW-xD-mws"
/>
<segue
destination=
"bKW-v9-6dS"
kind=
"showDetail"
id=
"0bG-wa-jMg"
/>
</connections>
</collectionViewCell>
</cells>
<connections>
<outlet
property=
"dataSource"
destination=
"aaB-Go-aWd"
id=
"bX7-L2-MmS"
/>
<outlet
property=
"delegate"
destination=
"aaB-Go-aWd"
id=
"dre-Tj-BHj"
/>
</connections>
</collectionView>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
...
...
@@ -234,7 +241,7 @@
<color
key=
"backgroundColor"
cocoaTouchSystemColor=
"groupTableViewBackgroundColor"
/>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"uHy-SO-4Zr"
>
<rect
key=
"frame"
x=
"0.0"
y=
"5
6
"
width=
"375"
height=
"44"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"5
5
"
width=
"375"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"uHy-SO-4Zr"
id=
"fwy-U7-SfD"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"43"
/>
...
...
@@ -415,6 +422,6 @@
</scene>
</scenes>
<inferredMetricsTieBreakers>
<segue
reference=
"
rAW-YH-b1U
"
/>
<segue
reference=
"
0bG-wa-jMg
"
/>
</inferredMetricsTieBreakers>
</document>
WhatsOpen/WhatsOpen/LocationsListViewController.swift
View file @
fdf2aede
...
...
@@ -29,11 +29,12 @@ class LocationsListViewController: UIViewController, UICollectionViewDelegate, U
// Do any additional setup after loading the view.
let
layout
=
UICollectionViewFlowLayout
()
//
let layout = UICollectionViewFlowLayout()
LocationsList
=
UICollectionView
(
frame
:
self
.
view
.
frame
,
collectionViewLayout
:
layout
)
LocationsList
.
dataSource
=
self
LocationsList
.
delegate
=
self
//LocationsList = UICollectionView(frame: self.view.frame, collectionViewLayout: layout)
//LocationsList.dataSource = self
//LocationsList.delegate = self
//LocationsList.register(SRCTSimpleCollectionViewCell, forCellWithReuseIdentifier: "CollectionCell")
SRCTNetworkController
.
performDownload
{
(
facilities
)
in
self
.
facilitiesArray
=
facilities
...
...
@@ -66,7 +67,8 @@ class LocationsListViewController: UIViewController, UICollectionViewDelegate, U
func
collectionView
(
_
collectionView
:
UICollectionView
,
cellForItemAt
indexPath
:
IndexPath
)
->
UICollectionViewCell
{
let
cell
=
collectionView
.
dequeueReusableCell
(
withReuseIdentifier
:
"CollecitonCell"
,
for
:
indexPath
)
as!
SRCTSimpleCollectionViewCell
let
cell
=
SRCTSimpleCollectionViewCell
()
//let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "CollecitonCell", for: indexPath) as! SRCTSimpleCollectionViewCell
let
dataArray
=
placeOpenFacilitiesFirstInArray
(
facilitiesArray
)
let
facility
=
dataArray
[
indexPath
.
row
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment