Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
azzuwan1933yBecause that one android sdk designer that wakes up every morning and questioned himself how can I make people's life more miserable and complicated today?
we kinda have to do this in iOS too, kinda....
where we have a segue from one controller to another, we can call a function to prepare any required data before the segue is executed. we typically grab the destination viewcontroller which has been initialised at this point, and set its member variables appropriately. i kinda prefer this approach because it means the destination view doesnt have to do any weird initialisation of variables from the previous view in the stack. it all gets done before the new view is presented.