Multi resolution bitmaps

I'm just getting started with my first iOS app using XE6 and iOS 7.  I like the native UI capabilities that come with the iCL but I've noticed that for icons for toolbar items or tab bar items you can only specify one bitmap of a specific size.  My app is going to be used on both retina and non-retina ipads so I need to provide both sizes of bitmaps.  How do you do this with the current iCL for XE6?  If there is no way, when will this capability be added?


Thanks
-
Scott

Hi, 


You need to create 2 images, for instance 'MyImage.png' with the size for non-retina screens and 'MyImage@2x.png' for retina screens. Add them both to your application through the deployment window.

You can access the native control and add the image programmatically:

TMSFMXNativeUIToolBar1.Items[0].Item.setImage(TUIImage.Wrap(TUIImage.OCClass.imageNamed(NSStr('MyImage'))));

Depending on the screen size, it will automatically use one of the added images.

You will need to add the units iOSApi.UIKit and iOSApi.Foundation

Kind Regards, 
Pieter

Pieter Scheldeman2014-06-02 02:37:46