UITextView + Intrinsic Content Size

Note to future self: the trick to get intrinsicContentSize to properly work, in UITextView instances, is to simply disable scrolling in the UITextView instance.

That way… the intrinsic size will be properly calculated.

Kali Bootable FlashDrive + Mac

Long story short… this is how i managed to get a bootable Kali flash drive:

  1. Make sure the Flash Drive is partitioned with the Master Boot Record DiskUtility Option.
  2. Kali’s ddcommand didn’t do the trick for me. Instead, i’ve used this tool.

 

The quieter you become, the more you can hear...

 

Using Xcode 7.x with an iOS 10 Device

Trick of the month….

  1. Upgrade your device to iOS 10
  2. Install Xcode 8 (Beta)
  3. Hook up your device and launch Xcode. It’ll download debugging symbols.
  4. Run this command in bash:
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ (14A5261u) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ (14A5261u)

And now you can use your iOS 10 device with Xcode 7. Phew