« first day (1399 days earlier)      last day (757 days later) » 

7:06 AM
wake up @Ranjit !
 
 
3 hours later…
9:51 AM
hello @MichaelDautermann
how are you
 
Ranjit!
I can't believe you woke up
that's awesome
 
when you ping, its an honour
so i should wake up :)
 
where have you been?
 
got busy with office work
 
you have office work?
 
9:53 AM
yes sir, I work for a company
 
you're very responsible... unlike me.
perhaps someday you will hire me
 
thats like touching the sky
i would like to work under you
 
ohhhh... I don't know if that will happen but perhaps
 
okay cool
 
 
6 hours later…
4:25 PM
I have a genuine Swift question, that i know i should post a question to the main site but im still researching and re reading the docs
i have an array of structs in swift
that i know can't be cast to AnyObject
but for it to conform to a protocol i need it to, essentially its getting turned into JSON
whats the process for turning an array of structs into something that conforms to AnyObject ?
 
 
2 hours later…
6:12 PM
@Dev2rights There isn't one, exactly. Structs are value objects. Class objects are references, have inheritance, etc. Probably the best thing to do is to create a new class that contains one of these structs, create an initializer that takes a struct, and then do a map of the array of structs to the array of StructContainer objects. Better t ago refactor your Structs into class objects
Hi Owatch. Howzit?
 
hey Duncan, I followed this tutorial for custom flow layout
But I am stuck at some point
I am not able to create a tag like this
any help Duncan
 
6:47 PM
Finally finished moving rooms.
Really tired, more exhausting than I thought.
 
7:02 PM
hey Owatch
can you help me out
 
7:26 PM
Ranjit, any experience with auto layout? Scroll views and uitextfields in particular...?
 
@Ranjit Sorry man, I was showering.
I can try to help but you know I often don't know what you're doing. Still, try me!
 
^^ That's my issue
 
@shadowmoses Can't you use a constraint to do this?
Don't fix the textfield height, but make it so that it can stretch, and then fix the bottom objects to the well..bottom?
 
7:43 PM
I thought so too
I pinned the Scroll View to its parent View
then pinned the content view to the scroll view
then gave everything in the view height constraints, except the uitextfield, which i set to stretch/contract
but Xcode keeps trying to change the size of things, its bizarre
 
Well, the scroll view should be pinned to the view above and below it right?
Not to the parents frame in any way.
 
Pinning something to the view above it is not the same as pinning it to its parent view?
 
It should be a child view of the parent, but only the Image and UILabel views should be pinned to the actual content view's top.
 
Yeah, pretty sure Im doing all that
 
And the buttons should be pinned to the bottom (Bottom of their parents frame, if that frame is what the entire screen is).
And then the scrollView should be in there, but only pinned to the top, bottom, and sides
top = (The UILabel)
bottom being the button "cancel"
And then the sides can actually be that of the parent I guess. So I was technically not correct since I missed that.
 
7:49 PM
I'm gonna mess around
Thank you
 
:(
Good luck.
 
Auto-layout is my least favorite thing about this whole process
 

« first day (1399 days earlier)      last day (757 days later) »