Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16941] iOS: System Info icon size is different between toolbar / toolbar and a view

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-09-16T18:31:33.000+0000
Affected Version/sRelease 3.2.3
Fix Version/sRelease 5.1.0
ComponentsiOS
Labelsapi, ios, iphone
ReporterDaniel Kunzler
AssigneeHans Knöchel
Created2014-05-06T22:18:44.000+0000
Updated2015-10-29T23:34:22.000+0000

Description

Problem

When info system button is added to anything other than toolbar/navbars, it appears distorted (see attached screenshot). In the following test case, you may notice that I created two info buttons, one for view, the other for toolbar. The one added to view has ' style : Ti.UI.iPhone.SystemButton.INFO_DARK ', which seems not acceptable. But accepting it may itself be a bug. However, it is the only possible way to add info system buttons to view and this feature is quite common everywhere. I'm afraid this distortion may cause Apple rejection.

Test case

//create component instance
var self = Ti.UI.createWindow({
	backgroundColor : '#ffffff',
	tintColor : 'red'
});

var button1 = Titanium.UI.createButton({
	bottom : 64,
	left : 16,
	style : Ti.UI.iPhone.SystemButton.INFO_DARK,
});
self.add(button1);

var button2 = Titanium.UI.createButton({
	systemButton : Ti.UI.iPhone.SystemButton.INFO_DARK,
});
var toolbar = Titanium.UI.iOS.createToolbar({
	items : [button2],
	bottom : 0,
	borderTop : true,
	borderBottom : true
});
self.add(toolbar); 
self.open();

Attachments

FileDateSize
bug1.tiff2014-05-06T22:18:44.000+000022926
ButtonSizes.jpg2015-09-15T20:43:04.000+000096424

Comments

  1. Ritu Agrawal 2014-05-09

    Moving this ticket to engineering as I can reproduce this issue with the provided test case.
  2. Daniel Kunzler 2014-05-31

    I think this issue should at least receive a priority as soon as possible. An app rejection by Apple seems imminent due to this distortion (it is really a large stretch on the vertical axis).
  3. Ingo Muschenetz 2014-08-14

    3.4.0 is moved forward, and 3.5.0 is taking its place in the calendar.
  4. Shameer Jan 2014-09-26

    Issue reproduces with TiSDK 3.2.3 and 3.4.0 Titanium Command-Line Interface, CLI version 3.3.0, Titanium SDK version 3.4.0.GA iOS SDK: 7.1 iOS iPhone Simulator: 7.1
  5. Chee Kiat Ng 2015-09-16

    APPROVED. PR merged.
  6. Harry Bryant 2015-10-29

    Verified as fixed. System Info Icon sizes are unified to one size. Tested on iOS devices and Simulators (8.4 & 9.1). Mac OSX El Capitan 10.11 (15A284) Ti SDK: 5.1.0.v20151028190028 Appc NPM: 4.2.1 Appc CLI: 5.1.0-38 Ti CLI: 5.0.4 Alloy: 1.7.4 Xcode 7.1(7B91b) Node v4.2.1 production *Closing ticket.*

JSON Source