Inquisitive Cocoa

Entries in the Objective-C category:

10th April ‘12

+ imageWithPDFNamed: …

@interface UIImage (AJKImageWithPDF)
 
+ (UIImage *)imageWithPDFNamed:(NSString *)pdfName;
+ (UIImage *)imageWithPDFNamed:(NSString *)pdfName scale:(CGFloat)scale;
 
@end

A small category for iOS to create an image from a .pdf file with as little fuss as possible: UIImage+WithPDF. It makes no attempt to cache images in any way. Realeased under the MIT License.

Cocoa, iOS, Objective-C, SourceAdd your thoughts

14th January ‘10

NSString-EscapeHTMLCharacters

Another category on NSString. This one converts a string containing characters that are special to HTML into their HTML entities.

& becomes &
< becomes &lt;
> becomes &gt;
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.

Cocoa, Objective-C, SourceAdd your thoughts

Categories & Tags:
By Date: