These are chat archives for devslopes/swiftios9

1st
Nov 2015
Aizaz Khaja
@aizkhaj
Nov 01 2015 02:28
I'm on the same exercise currently. This may or may not be relevant to it, but why are we using "sender" to pass in functions? is that a thing or something we chose arbitrarily?
Mark Price
@spentak
Nov 01 2015 03:19
Its just a variable name
You can call it whatever you want
Aizaz Khaja
@aizkhaj
Nov 01 2015 04:07
Ok. I understand that it works as a placeholder name for whatever passes through, but is there a time when you need to call that variable?
Mark Price
@spentak
Nov 01 2015 18:51
If you want to access the object that is coming from your story board
Sketchy Swift
@HardcoreIOS
Nov 01 2015 20:37
@spentak Do we need to always call the awakeFromNib() function for every custom class we make?
Mark Price
@spentak
Nov 01 2015 20:38
No
You don't always have to use it in a custom view either
Sketchy Swift
@HardcoreIOS
Nov 01 2015 20:39
So if you don’t call it what happens
@spentak ^
Mark Price
@spentak
Nov 01 2015 20:39
Try it ;)
e2interactive
@e2interactive
Nov 01 2015 21:52
This message was deleted
Have a question on how I would build out a layout like the one I've designed here. Would you use a UITableView and Table View Cell? How would I go about have multiple cells per row? See image below
clients-photo-list.png
itsalexbrown
@itsalexbrown
Nov 01 2015 21:57
@e2interactive This is just a guess but possibly “Collection View"
e2interactive
@e2interactive
Nov 01 2015 21:58
Does collection view allow for section headers like in Table View?
itsalexbrown
@itsalexbrown
Nov 01 2015 22:02
I would say so :) Havn’t used them much personally. I think collection view would be best to achieve design in your screenshot though. Might want to get @spentak to confirm
e2interactive
@e2interactive
Nov 01 2015 22:59
@spentak what would you use to layout a list multiple cells in a row? Would you use a custom Table View or a Collection View?
Mark Price
@spentak
Nov 01 2015 23:00
Uitableview
Mark Price
@spentak
Nov 01 2015 23:08
Oh
Just saw the image
Uicollectionview
@e2interactive
e2interactive
@e2interactive
Nov 01 2015 23:19
Did you have any videos in the class that talk or used the UICollectionview?
Mark Price
@spentak
Nov 01 2015 23:20
We use it all n the pokedex
e2interactive
@e2interactive
Nov 01 2015 23:20
Sweet thanks, I don't think I got to that one yet. Will check it out.