How can i add two uiimageview and save it to iphone photo gallery in iphone application development?

后端 未结 2 1169
忘掉有多难
忘掉有多难 2021-01-15 01:46

I am going straight to the point,my problem is, I have a uiview controller which is taking 3 buttons and a uiimage view.Now,

  1. When i am pressing first button

2条回答
  •  情深已故
    2021-01-15 02:29

    In Button TouchUpInSide Event Write thid code

    Create first image

    UIImage *myImage = [UIImage imageNamed:@"image1.png"];
    

    save first image

    UIImageWriteToSavedPhotosAlbum(myImage, self, nil, nil);
    

    Create second image

    myImage = [UIImage imageNamed:@"image2.png"];
    

    Save second image

    UIImageWriteToSavedPhotosAlbum(myImage, self, nil, nil);
    

提交回复
热议问题