compatibily sdk ios 5.1 with other

You must Login before you can answer or comment on any questions.

Hi,

When i install my app on my device...i can only install with iOS 5.1 wich is installed on my mac. I thought that when an app is compiled for iOS 5.1, it works for all iOS before and i found that this code :

function update(albums){
 
                var fonds = [];
 
                var albumGaucheView = Ti.UI.createView({
                    backgroundImage: 'images/01-Albumleft.png',
                    width: 8, height: 95, left: 10
                });
 
                scrollAlbums.add(albumGaucheView);
 
                for(var i=0;i<albums.length;i++){
 
                    var fond = Ti.UI.createImageView({
                        backgroundImage: 'images/01-Albumbody-Off.png',
                        zIndex: 0,
                        width: 73,
                        height: 95
                    });
 
                    fonds.push(fond);
 
                    var conteneurAlbum = Ti.UI.createView({
                        layout: 'vertical',
                        left: 4,
                        top: 10
                    });
 
                    var textAlbum = Ti.UI.createLabel({
                        text: albums[i].titre,
                        color: '#000',
                        font: {fontSize: 11},
                        width: 55,
                        height: 20,
                        top: 2,
                        textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER
                    });
 
                    var imageAlbumView = Ti.UI.createView({
                        backgroundImage : albums[i].thumb,
                        width : 50,
                        height : 50,
                        photos : albums[i].photos,
                        titre: albums[i].titre,
                        zIndex:1,
                        index: i
                    });
 
                    imageAlbumView.addEventListener('click', function(e){
                        for(var a=0; a<fonds.length; a++)
                            fonds[a].backgroundImage = 'images/01-Albumbody-Off.png'
                        fonds[e.source.index].backgroundImage = 'images/01-Albumbody-On.png';   
                        loadPhotos(e.source.photos, e.source.titre);
                    });
 
                    conteneurAlbum.add(imageAlbumView);
                    conteneurAlbum.add(textAlbum);
                    fond.add(conteneurAlbum);
                    scrollAlbums.add(fond);
 
                    actInd.hide();
                }
 
                var albumDroiteView = Ti.UI.createView({
                    backgroundImage: 'images/01-Albumright.png',
                    width: 8, height: 95
                });
 
                scrollAlbums.add(albumDroiteView);
            }
works for iOS 5.1 but when i tested it on an iPad with 4.3 version. imageAlbumView doesn't display its backgroundImage so i replaced that by ImageView to work with image property. but ImageView keep proportion not like View..

thanks for information.

— asked 10 months ago by Djamel ZAHAL
2 Comments
  • Djamel , So whats your problem here ..

    — commented 10 months ago by Namit NAYAK

  • my question is, if a developp for iOS 5.1....should my applicaiton work for all iOS ?

    — commented 10 months ago by Djamel ZAHAL

Your Answer

Think you can help? Login to answer this question!