Asked By
Gary Jamie
0 points
N/A
Posted on - 03/13/2013
Hi all experts,
I am using Apple iPad for the college fun and entertainment. I have some apps to edit the images, but not satisfied with them. Now I want to create some background images from ios toolbar image creator, but I am not able to use it. Can anyone educate me how to create images from ios toolbar image creator.
How to create images from ios toolbar image creator.
Hi,
There's a method to create an image on IOS toolbar. The method as below.
“-(UIImage*) makeImage {
UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return viewImage;
} “
Make a modified init strategy for your modal perspective, and additionally give your modalView an occasion variable that can hold an UIImage something like…
“-(id)initWithImage:(UIImage*)temp {
myImage =temp;
}”
At that point in your modalView, maybe in the viewDidLoad technique, make an UIImageView and set the visualization to myImage
Thank you