0

I am getting error when trying to use pasteboard method to post images through input control of the custom keyboard I am following this tutorial [question]: iOS: Custom keyboard: I want to send images to the textDocumentProxy(Input controls) , but I am getting error when trying to send the image with above error of the title that I stated I really hoped some of you guys can help me out.

-(void)keyBoardButtonClick:(UIButton *)sender

    {

    //    UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];

        if (sender.tag==1111) {
            [self.textDocumentProxy insertText:@"⒜⒝⒞⒟Ψ"];
            NSData *imgData = UIImagePNGRepresentation(@"apple.png");

            if(imgData == nil){
                NSLog(@"error image");
            }else{
                NSLog(@"true image");
            }


            NSLog(@"pressed 1");

        }
Community
  • 1
  • 1
user3711175
  • 109
  • 2
  • 16

0 Answers0