DreamLab – Solve cancer while you sleep

Recommended By

Now more than ever, we have the power to change humanity with technology, and today we are helping cure cancer. Over the last 5 years cancer has taken away many people close to me, and

b2cloud are a BRW Fast 100 winner

Recommended By

It’s honouring to receive recognition for b2cloud as one of the 100 fastest growing companies in Australia in the BRW Fast 100. October has proven to be a highly rewarding month for our team, after

2015 App Design Award Winners!

Recommended By

Another great win for the b2cloud team, being recognised by the App Design Awards for our incredible work with Catch of the Day owned Yumtable. The industry awarded b2cloud 2 Silver awards for the Best

iOS Perspective Transform

Guides | Tutorial By 5 years ago

A couple of months ago I posted on how to create a distort transform in iOS using a CGAffineTransform. Since then I have been doing a lot of experimenting with transforms trying to create different effects. Something I wanted to do was create a book like effect where the page opened up and looked as if it was coming towards you. This was impossible with regular CGAffineTransforms (3×3 matrix)…

iOS Distort Transform

Guides | Tutorial By 5 years ago

Transforms in iOS are great, very easy to create and use, as long as you only want to rotate, translate or scale. In a project we completed a while back we needed to distort the text on a switch type button to make it look like the text followed the contour of the button’s edges. We tried rotating but that looked strange when the corners of the text poked out, we needed to keep the left and right edges straight like a parallelogram, we needed a ‘distort’ transform. The CGAffine methods don’t support distorting, so we had to make the transform ourselves. It is actually very easy, just implement these two defines in your project and use them like you would use the scale, rotate or translate functions.