Programmatically access the App's icon on iOS

1.3k Views Asked by At

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.

1

There are 1 best solutions below

4
On BEST ANSWER

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.