Creates an avatar image like the iOS7 Contacts.app for a given name
pod 'GKContactImage'
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.
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]];
Georg Kitz, @gekitz
link |
Stars: 56 |
Last commit: 2 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics