iOS解析后台返回的二进制图片

                UIEdgeInsets insets = {0,0,0,0};

                [self.showidentifyButton setImageEdgeInsets:insets];

                NSData *imageData = [[NSData alloc] initWithBase64EncodedString:verifycodeModel.message options:NSDataBase64DecodingIgnoreUnknownCharacters];

                UIImage * image = [UIImage imageWithData:imageData];

                [self.showidentifyButton setBackgroundImage:image forState:UIControlStateNormal];

posted @ 2016-08-19 10:18  乔胖胖  阅读(744)  评论(0编辑  收藏  举报