How to convert Text to Image and show in UIImageview. Can anyone know the conversion from Text to Image?
[yourImageView addSubview:textView]; [canvas addSubview:passingImageView];
UIGraphicsBeginImageContext(canvas.bounds.size);
[canvas.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *resultingImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return resultingImage;
you should take a UIView and inside take UIImageview and the above code should do the trick.Here canvas is UIView.