UIGraphicsBeginImageContextWithOptions(, NO, 0) ĬGContextRef context = UIGraphicsGetCurrentContext() (UIImage *)createImage:(UIImageView *)imgView When button clicked image along with overlapped text will be save as single image in your photo album.įollowing method will handle button click event for that: - (IBAction)btnCaptureImageClicked:(id)sender You have to set userInteraction enabled for both UIImageView and UILabel which is defoned as above.Īdd one button to main view controller to handle capturing of overlapping text with image. In above code, we are adding one label to UIImageView which is already available in our main view controller, add pan gesture to it and define appropriate selector method regarding to it. UIPanGestureRecognizer *panGesture = initWithTarget:self setMinimumNumberOfTouches:1] Write following method in viewDidLoad() of main view controller.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |