Tuesday, July 31, 2018

Set a spacing before the first and after the last view inside a UIStackView

We can set spacing between UIStackView's arranged subviews easily by setting the spacing for the UIStackView. But to give a padding before the first item and after the last item, the easiest way seems to be setting layout margins for the UIStackView

Wednesday, July 11, 2018

UIStackView not showing some of the subViews

When a sub view of a UIStackView doesn't have an intrinsic content size, the UIStackView might not even display it in the UI. So if your subview is missing, try applying constraints to define the position and size of the subview.

Friday, March 16, 2018

strip-frameworks.sh file not found

This is because the compiler is trying to run the script within the embedded framework before actually embedding the framework itself. Reorder the default build phases to fix this:

Clean the build folder.
[Press option button and Product -> Clean]

Under 'Build Phases', Move the 'Embed Frameworks' section to above the 'Run Script' phase.



Monday, February 19, 2018

expr - Modify objects at runtime!!
If you want to modify a live object from the debugger, you can use expression(or just expr) to modify their properties on runtime using memory addresses
'expr' is used to evaluate runtime expression in debugger
(lldb) expr ((UIView *)0x7fac07a456b8).backgroundColor = [UIColor redColor]