@interface UIImage (AJKImageWithPDF) + (UIImage *)imageWithPDFNamed:(NSString *)pdfName; + (UIImage *)imageWithPDFNamed:(NSString *)pdfName scale:(CGFloat)scale; @end
Here’s this mornings little productivity optimisation.. For ages I’ve had
xc bound to
open *.xcodeproj but that only works within the root directory of a project.. so heres a simple ruby script to open the Xcode project, either within the current working directory or within any of it’s parent directories. I have it aliased to ‘xc’ for easy triggering. Script updated to open a .xcworkspace if there is one otherwise falling back to the .xcodeproj.
Updated: 25/02/15 with the new code to favour workspaces
Another category on NSString. This one converts a string containing characters that are special to HTML into their HTML entities.
& becomes &
< becomes <
> becomes >
And so on..
It’s loosely based on a similar category in the Google Toolbox. It’s written with a bias towards simplicity rather than efficiency.. and it’s on GitHub: http://github.com/inquisitiveSoft/NSString-EscapeHTMLCharacters under the MIT License.