我想制作一个照片装饰贴纸应用程序,但是我想知道如何编写代码来将额外的贴纸加载到uiimageview中?我应该编写if语句,以便以编程方式自动生成吗?
- (void)handleDoubleTapFrom:(UITapGestureRecognizer *)gestureRecognizer
{
if (gestureRecognizer.state == UIGestureRecognizerStateEnded) {
stickerEditorViewController = [[stickerEditorViewController alloc] initWithNibName:@"stickerEditorViewController" bundle:nil];
stickerEditorViewController.delegate = self;
[self presentModalViewController:stickerEditorViewController animated:YES];
stickerEditorViewController.parentPreviewImageView.image = pickedSticker;
}
}