在iPhone中使用Retro Avatar API

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在iPhone中使用Retro Avatar API相关的知识,希望对你有一定的参考价值。

How to dwonload and use a Retro Avatar image in a iPhone App.
In this example: uid is a Facebook user id, optionally you can use any string, a name, a md5 hash of a email address and it is assumed you have an image view with tag id 1 you want to set the image for
  1. NSString *name = [NSString stringWithFormat:@"http://retroavatar.appspot.com/api?name=%d&alpha=true&fact=2", uid];
  2. NSURL *url = [NSURL URLWithString:name];
  3. NSData *data = [NSData dataWithContentsOfURL:url];
  4. UIImage *img = [UIImage imageWithData:data];
  5. ((UIImageView *) [self.view viewWithTag:1]).image = img;

以上是关于在iPhone中使用Retro Avatar API的主要内容,如果未能解决你的问题,请参考以下文章

将 iPhone 连接到 Android 的 Wifi Direct 软 AP

markdown retro.md

air jordan 13 retro 2017 reviews and story

javascript bootstrap_retro_prepworx.js

Air Jordan 8 Retro Performance Review

Wifi网络中,在传输数据前通常需要进行( )次握手,以建立无线通信网络连接