Fixing Warnings in Trevor Harmon’s UIImage Categories

Resizing images, cropping them to a specific thumbnail size, applying rounded corners is extremely easy with Trevor Harmon’s UIImage categories. In fact, they proved to be invaluable to my latest project (there is not need to reinvent the wheel with my own code).

But if you add original files, the compiler will generate a few warnings. Warnings like:

Luckily they are extremely easy to fix. For the first error, you’ll need to remove private helper method declarations from every category. The second warning can be fixed by adding default switch statement (default:break; will work just fine).

Continue reading “Fixing Warnings in Trevor Harmon’s UIImage Categories”

Fixing Warnings in Trevor Harmon’s UIImage Categories