{ "id": "119830", "key": "TIMOB-15192", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15691", "description": "2013 Sprint 19", "name": "2013 Sprint 19", "archived": true, "released": true, "releaseDate": "2013-09-20" }, { "id": "15693", "description": "2013 Sprint 19 API", "name": "2013 Sprint 19 API", "archived": true, "released": true, "releaseDate": "2013-09-20" }, { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-09-17T20:35:43.000+0000", "created": "2013-09-12T18:46:01.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios7", "splash-screen" ], "versions": [], "issuelinks": [ { "id": "31898", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "104470", "key": "TIMOB-11674", "fields": { "summary": "iOS: iPad Landscape Splash Screen looks distorted", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-09T07:13:41.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "test case\r\nopen Kitchen sink in Simulator or on iPhone (tested on iphone 4)\r\n\r\nresult\r\nbefore disappearing the splashScreen seems to move slightly or stretch to the top.\r\n", "attachment": [], "flagged": false, "summary": "iOS7: Splash-Screen flickers/stretches before disappearing ", "creator": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "subtasks": [], "reporter": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "environment": "IOS7-GM\r\nTI SDK 3.1.3 / 3.2.0\r\nmacOSX 10.8.4\r\nXCode 5 GM", "comment": { "comments": [ { "id": "271033", "author": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "body": "this prevents from having a clean & smooth transition when you re-use the splashScreen as background image for a window.\r\n\r\n test case 1\r\n{code}\r\n//run this code on IOS7 simulator in 'Retina Tall' mode\r\n\r\n(Ti.UI.createWindow({backgroundImage:'Default-568h.png'})).open();\r\n{code}\r\n\r\ntest case 2\r\n{code}\r\n//run this code on IOS7 simulator in 'Retina' mode\r\n(Ti.UI.createWindow({backgroundImage:'Default.png'})).open();\r\n{code}\r\n\r\n\r\nresult: splash screen moves up or stretches before disappearing\r\n\r\nwith:\r\nDefault@2x.png (640x960)\r\nDefault-568h@2x.png ( 640x1136)\r\n\r\nConsidering the IOS7 -by default - fullscreen mode, there shouldn't be such a behavior.\r\n", "updateAuthor": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "created": "2013-09-13T08:35:16.000+0000", "updated": "2013-09-14T10:30:17.000+0000" }, { "id": "271155", "author": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "body": "Related Topics in Q&A\r\n\r\nhttp://developer.appcelerator.com/question/157139/launch-image-ios-7gm\r\nhttp://developer.appcelerator.com/question/157165/ios7---313-rc---xcode5---icons-and-launch-image", "updateAuthor": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "created": "2013-09-14T10:06:21.000+0000", "updated": "2013-09-14T10:09:00.000+0000" }, { "id": "271162", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Reproduced with SDK 3.1.3.v20130913160104, iOS7 GM, iOS Simulator 4\" (Default-568h@2x.png).\n\nExpected: Smooth opening of the app.\nResult: The splashscreen flickers just before focusing the app.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-14T20:24:34.000+0000", "updated": "2013-09-14T20:24:34.000+0000" }, { "id": "271329", "author": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "body": "I had a look to TiRootViewController:\r\n\r\nview initialization in -loadview\r\n{code}\r\nTiRootViewNeue *rootView = [[TiRootViewNeue alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];\r\n{code}\r\n\r\nthe size of the view is then used to set the default Image size in -(void)rotateDefaultImageViewToOrientation: (UIInterfaceOrientation )newOrientation;\r\n\r\n{code}\r\nCGRect newFrame = [[self view] bounds]; //wrong for ios7\r\n{code}\r\n\r\nthe problem seems to be there since IOS7 is fullscreen, the defaultImage is unnecessary moved 20 pixels to the top in the following test (still in -(void)rotateDefaultImageViewToOrientation: (UIInterfaceOrientation )newOrientation; )\r\n\r\n{code}\r\n\r\n\r\n\r\nif(imageSize.width == newFrame.size.width)\r\n\t{\r\n\t\tCGFloat overheight;\r\n\t\toverheight = imageSize.height - newFrame.size.height;\r\n\t\tif (overheight > 0.0) {\r\n\t\t\tnewFrame.origin.y -= overheight;\r\n\t\t\tnewFrame.size.height += overheight;\r\n\t\t}\r\n\t}\r\n{code}\r\n\r\n ", "updateAuthor": { "name": "vince", "key": "vince", "displayName": "Vincent ", "active": true, "timeZone": "Europe/Paris" }, "created": "2013-09-16T18:40:42.000+0000", "updated": "2013-09-16T18:41:38.000+0000" }, { "id": "271332", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thats it! I solved the problem by replacing line 357 in TiRootViewController.m:\r\n\r\nFrom: if(imageSize.width == newFrame.size.width)\r\nTo: \tif(imageSize.width == newFrame.size.width && ![TiUtils isIOS7OrGreater])\r\n\r\nTested on both iOS 6 & 7. Can someone verify?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-16T19:06:15.000+0000", "updated": "2013-09-16T19:06:15.000+0000" }, { "id": "271408", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/4701\r\n3_1_X - https://github.com/appcelerator/titanium_mobile/pull/4702", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-16T23:39:31.000+0000", "updated": "2013-09-17T20:32:01.000+0000" }, { "id": "271472", "author": { "name": "korey_sed", "key": "korey_sed", "displayName": "Korey Sed", "active": true, "timeZone": "America/New_York" }, "body": "Hans' fix works. Confirmed on\r\n\r\nSDK 3.1.3v20130916153052\r\nUsing iPhone 4S on iOS7\r\niPhone 3GS on iOS6.1.4", "updateAuthor": { "name": "korey_sed", "key": "korey_sed", "displayName": "Korey Sed", "active": true, "timeZone": "America/New_York" }, "created": "2013-09-17T13:27:27.000+0000", "updated": "2013-09-17T13:27:27.000+0000" }, { "id": "271627", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is more visible in simulator than on device. Verified fixed with:\nMac OS 10.8.4\nXcode 5 GM seed\nCLI: 3.1.2\nAlloy: 1.2.2-cr\nAppcelerator Studio, build: 3.1.3.201309072408\nTitanium SDK version 3.1.3.v20130917141554\n\nChecked with iPhone 4, iPhone 5, both running iOS 7 GM seed", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-18T00:05:40.000+0000", "updated": "2013-09-18T00:05:40.000+0000" }, { "id": "274336", "author": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still getting this issue in 3.1.3.GA using an iPad locked in landscape mode.\r\nHans' code fixes it.", "updateAuthor": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-09T06:55:57.000+0000", "updated": "2013-10-09T06:55:57.000+0000" }, { "id": "274337", "author": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sorry, Hans' code does not fix it - issue persist with iPad in lanscape mode.", "updateAuthor": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-09T07:00:00.000+0000", "updated": "2013-10-09T07:00:00.000+0000" }, { "id": "274339", "author": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sorry ignore my spamming. The splash image size just needed to be changed. ", "updateAuthor": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-09T07:13:41.000+0000", "updated": "2013-10-09T07:13:41.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }