I'm using a storyboard with a TabBarViewController. The UIViewController of the tabs are embedded in UINavigationViewController. I'm using .png files and added through the attributes inspector to the view. At the size inspector the Image Inset is set "18" for top, bottom, left & right.
If the apps starts the icons are a lot too small. After tapping a tab it changes the size to the desired size.
How can I get the correct size of the icons without tapping it?
Thanks!
You have to provide your images in 2 resolutions.
If you use xcassets, just drag&drop your images in 1x and in 2x resolution on the placeholders and give it a name.
If you do not use xcassets, provide the 2 files with names:
image.png (normal resolution) and [email protected] (for retina)
Within your code just use image.png as filename, XCode automatically picks the correct file.