Latest 0.0.4
Homepage https://github.com/gekitz/GKContactImage
License MIT
Platforms ios 7.0, requires ARC
Authors

Creates an avatar image like the iOS7 Contacts.app for a given name

Install

pod 'GKContactImage'

Usage

You simple use the category method with a given name and the size of the image you want to create.

self.bigImageView.image = [UIImage imageForName:@"Georg Kitz" size:self.bigImageView.frame.size];

This would create the following image.

Sample

For a more customized image, use the extra category method with more options.

self.bigImageView.image = [UIImage imageForName:@"Georg Kitz" size:self.bigImageView.frame.size backgroundColor:[UIColor blackColor] textColor:[UIColor yellowColor] font:[UIFont systemFontOfSize:18.0]];

Author

Georg Kitz, @gekitz

Latest podspec

{
    "name": "GKContactImage",
    "version": "0.0.4",
    "summary": "Contact avatar image like Contacts.app",
    "description": "Creates an image for a given name with a given size.nIt takes the initials of a name and creates an image, likenthose you see in the iOS 7 Contacts.app",
    "homepage": "https://github.com/gekitz/GKContactImage",
    "screenshots": "https://raw.githubusercontent.com/gekitz/GKContactImage/master/Files/screen.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Georg Kitz": "[email protected]"
    },
    "social_media_url": "http://twitter.com/gekitz",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/gekitz/GKContactImage.git",
        "tag": "0.0.4"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This