{ "id": "104795", "key": "AC-2343", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-04-05T23:21:32.000+0000", "created": "2012-11-10T10:46:00.000+0000", "labels": [ "API", "Titanium", "default.png", "i0S" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:22.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "if you want to load the Default png from the MainBundle, for example to use as a background for one of your window /view this will work only for 3.5 inches iPhones not for iPhone 5 and iPad.\r\n\r\nin TiUtils.m :\r\n{code}\r\n+(UIImage*)loadBackgroundImage:(id)image forProxy:(TiProxy*)proxy\r\n{code}\r\n\r\nwe have the special case \r\n( around line 1632)\r\n{code}\r\n if (resultImage==nil && ( [image isEqualToString:@\"Default.png\"] ))\r\n {\r\n // special case where we're asking for Default.png and it's in Bundle not path\r\n resultImage = [UIImage imageNamed:image];\r\n }\r\n{code}\r\n\r\nwhich will work only for legacy iPhones.\r\n\r\n\r\nsame special case in\r\nUIModule.m \r\n(around line 192)\r\n{code}\r\n-(void)setBackgroundImage:(id)image\r\n{code}\r\n\r\nmy solution was to rewrite the special case like this ,in both methods (dirty)\r\n\r\n{code}\r\nif (resultImage==nil && ([image isEqualToString:@\"Default.png\"]||[image hasPrefix:@\"Default-\"]))\r\n\t{\r\n\t\t// special case where we're asking for Default.png and it's in Bundle not path\r\n\t\tresultImage = [UIImage imageNamed:image];\r\n\t}\r\n{code}", "attachment": [], "flagged": false, "summary": "iPhone5 & iPad : can't access Default Splash Screen resources from MainBundle", "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": null, "comment": { "comments": [ { "id": "288656", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hi Vincent,\n\nIt has been long since the ticket was last updated. We have not heard back from you further. Can you please let me know if this is still an issue for iPhone 5 and iPad. If so, please post a complete test case and we will review at the earliest. If we don't hear back from you, we will assume the issue is invalid and close the ticket.\n\nThanks,", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-17T21:13:00.000+0000", "updated": "2014-01-17T21:13:00.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }