yackle / CLImageEditor

MIT License
2.21k stars 573 forks source link

Access to pushedNewBtn from the sticker tool #127

Closed appzer closed 8 years ago

appzer commented 8 years ago

Hello,

i have modified the sticker tool to insert submenus.

From there i also want to access the camera or library:

- (void)tappedStickerPanel:(UITapGestureRecognizer*)sender
{
    UIView *view = sender.view;
    NSString *SubMenuName = view.userInfo[@"filePath"];
    //NSLog(@"%@",SubMenuName);
    if(SubMenuName){
        if([SubMenuName isEqualToString:@"001-Device.png"]){ // image from device or camera
            NSLog(@"Image from Device");

        } else {
            NSArray* SubMenuNameArray = [SubMenuName componentsSeparatedByString: @"."];
            NSString* SubMenuName = [SubMenuNameArray objectAtIndex: 0];
            _StickerType = SubMenuName;
            [self setStickerSubMenu];
        }
    }
}

How i can load a image from camera or photo library (NSLog(@"Image from Device");)

Thanks Kevin

yackle commented 8 years ago

What have you tried?