Quantcast
Viewing all articles
Browse latest Browse all 8068

Title Image Jumps on Back iOS

Titanium SDK: 3.2.2 and 3.2.3 Alloy: 1.3.1 iOS Simulator: 7.0.3 and 7.1

If I specify a title image for an iOS navigation controller (see index.xml) and then navigate to a second controller and then navigate back using the "Back" button. The title image starts in the top left of the nav bar and then jumps to the center. See screen shots. This doesn't seem to occur with text title just the title image.

Regular: http://i.imgur.com/VT6QCpk.png

Mid-Animate on Back: http://i.imgur.com/Y0KvSwd.png

Tried adding the title image from different places. Used the same PNG in true native iOS project with no problems. Not sure what do here.

index.xml

<Alloy>
    <NavigationWindow>
        <Window class="container" titleImage="header.png">
            <Label id="label" onClick="doClick">Hello, World</Label>
        </Window> 
    </NavigationWindow>
</Alloy>
index.js
function doClick(e) {
    $.index.openWindow(Alloy.createController("next").getView());
}
 
$.index.open();
next.xml
<Alloy>
    <Window backgroundColor="white">
        <Label id="label">Next!</Label>
    </Window>
</Alloy>
header@2x.png - http://placehold.it/180x64 (saved and converted to png)

Viewing all articles
Browse latest Browse all 8068

Trending Articles