iosobjective-ccocoa-touchappicon

Programmatically access the App's icon on iOS


I want to send a Tweet from my App and for the actual tweet I want to include the App's icon.

Is there a quick way to access the icon. Otherwise I have add and duplicate the icon to my Resources folder in Xcode.


Solution

  • The app icons is already in the resource directory (which doesn't really exist)

    UIImage *appIconImage = [UIImage imageNamed:@"appicon.png"];
    

    Where appicon.png is the name of you app's icon file.