yackle / CLImageEditor

MIT License
2.21k stars 573 forks source link

How to add different size of icon images for different tool? #83

Closed Rjmaurya13 closed 9 years ago

Rjmaurya13 commented 9 years ago

I am creating a universal application. I found that the icon size for different tool is 256*256. Now i have different icon image size for different tool for iPhone5,iPhone6,iPhone6+, iPad. So how to load different size of icon image according to device for tool?

yackle commented 9 years ago

You can use .xassets and set icon name as follows:

for(CLImageToolInfo *tool in editor.toolInfo.subtools){
    tool.iconImagePath = @"Your Icon Name in .xassets";
}