doc
 All Classes Functions Variables Properties
Classes | Enumerations
Utilities
Core

Classes

class  EMBitlyUtil
protocol  <EMSelectFromContactsDelegate>

Enumerations

enum  EMImageManipulatorRoundedCorner { EMImageManipulatorRoundedCornerTopLeft = 1, EMImageManipulatorRoundedCornerTopRight = 2, EMImageManipulatorRoundedCornerBottomRight = 4, EMImageManipulatorRoundedCornerBottomLeft = 8 }
NSString * EMLocalizedString (NSString *key, NSString *comment)
NSString * EMCurrentLanguage ()
NSString * EMDescriptionForError (NSError *error)
BOOL EMIsIPad ()
CGFloat EMScale ()
CGRect CGRectInsetToSize (CGRect rect, CGSize size)
CG_EXTERN CGImageRef TrimWhitespace (CGImageRef inImage, double paddingPercent)
CG_EXTERN CGImageRef ApplyImageMask (CGImageRef imageMask, CGColorRef fillColor)
CG_EXTERN CGImageRef EmbossImage (CGImageRef image)

Function Documentation

CGRect CGRectInsetToSize ( CGRect  rect,
CGSize  size 
)

Returns a new CGRect of lesser or equal size, centered inside the rect

NSString* EMCurrentLanguage ( )

Checks the User Preferences for language, or returns "en" if no preferences were found.

NSString* EMDescriptionForError ( NSError *  error)

Like TTDescriptionForError, except uses it uses EMLocalizedString, returns "Unknown Error" if error is nil, and returns the localizedDescription if the error is not in the NSURLErrorDomain.

Error codes handled:

  • NSURLErrorTimedOut
  • NSURLErrorNotConnectedToInternet
  • All other NSURLErrorDomain errors fall through to "Connection Error".
BOOL EMIsIPad ( )

Returns true if the device is an iPad.

NSString* EMLocalizedString ( NSString *  key,
NSString *  comment 
)
Returns:
A localized string. First checks the main bundle, then the EMlib bundle, then the Three20 bundle
CGFloat EMScale ( )

Returns 2.0 for the retina display phone, and 1.0 for the older devices