Why I don’t get into arguments the way I used to

Leave a comment


  • Everything is opinion
  • I believe if I had the same experiences as others I would most likely share a similar opinion
  • And for every strongly held belief an example or counterexample can often be given
  • Not all advice holds in all scenarios
  • And I also have seen this happen in myself.
  • My own thoughts and beliefs have changed over time. So don’t get too excited or surprised when people think differently than you. We need all opinions. Young and old.
  • So when faced with a hostile of different point of view I don’t get as excited as I used to
  • Instead I think
    • There is probably some merit to what they believe
    • It would be to my advantage to discover what it is
    • And then after I can judge and decide whether I share that belief or not
    • And then, only then, if the other party is interested will I share my thoughts back


A nice macro for designated initializers


Define a macro like this

    /** Unavailable. Use the designated initializer instead */ \
    + (instancetype)new NS_UNAVAILABLE; \
    /** Unavailable. Use the designated initializer instead */ \
    - (instancetype)init NS_UNAVAILABLE; \

So you can do this

- (instancetype)initWithBar:(Bar *)bar FOO_DESIGNATED_INITIALIZER;

How to fix iMessage orientation crash

Leave a comment

iMessage will crash in mysterious ways if you start in portrait, change to landscape, and then select something from your conversation.

My buddy kevski figured out that you can fix this by dismissing yourself every time you send a message.


- (void)didStartSendingMessage:(MSMessage *)message conversation:(MSConversation *)conversation
[self dismiss];

Just another weird iMessage thing. But this seems to be what most apps do and it fixed an annoying bug I had. Merci kevski!

How to add a border to a UIImageView

Leave a comment

#import <QuartzCore/QuartzCore.h>
    _imageView.layer.borderColor = [UIColor colorWithWhite:0.0 alpha:0.1].CGColor;

Just change the CALayer on the UIImageView as shown above.

Screen Shot 2017-08-01 at 1.31.51 PM.png

How to preserve a button’s height and width in a UIStackView with distribution fill

Leave a comment

Not sure if there is a simpler way to do this, but if you have a button and you don’t want it to fill the entire StackView width and height, place it inside another view within the stackView and set leading/trailing/top/bottom constraints on it it.

Screen Shot 2017-07-09 at 7.34.40 PM.png

Kent Beck Tweets

Leave a comment

These are some of my favorite tweets by Kent Beck.

Screen Shot 2017-07-05 at 11.19.35 AM.png


StackView element heights respected

Leave a comment

If you are having your UI elements fill your StackView more than you’d like

Screen Shot 2017-06-29 at 3.50.31 PM.png

Change the alignment from fill to center

Screen Shot 2017-06-29 at 3.51.03 PM.png

Screen Shot 2017-06-29 at 3.48.33 PM.png

Older Entries

%d bloggers like this: