{ "id": "87273", "key": "TIMOB-7862", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13277", "name": "Sprint 2012-08", "archived": true, "released": true, "releaseDate": "2012-04-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-25T18:09:35.000+0000", "created": "2012-03-02T07:56:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-13T20:33:20.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": "Previous to 5.0 there was no way to customize the UIPopover background color. From reading the docs and around the web since 5.0 people have been doing it.\r\n\r\nReferences:\r\nhttps://developer.apple.com/library/ios/#documentation/uikit/reference/UIPopoverController_class/Reference/Reference.html#//apple_ref/occ/instp/UIPopoverController/popoverBackgroundViewClass\r\nhttps://developer.apple.com/library/ios/#documentation/uikit/reference/UIPopoverBackgroundView_class/Reference/Reference.html#//apple_ref/occ/cl/UIPopoverBackgroundView\r\nhttp://stackoverflow.com/questions/5974439/customizing-the-uipopovercontroller-view-background-and-border-color\r\nhttp://stackoverflow.com/questions/8490261/change-color-navigation-controller-in-a-popover", "attachment": [], "flagged": false, "summary": "iOS: UIPopover background color", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": null, "comment": { "comments": [ { "id": "189277", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "An important point to make: Since this is a 5.0-only feature, it does mean people using the app in 4.0, 4.2, 4.3, etc, will not see the popover color. This should be stressed.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-30T09:07:50.000+0000", "updated": "2012-03-30T09:07:50.000+0000" }, { "id": "189280", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "Yup. This is acceptable.", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2012-03-30T09:09:51.000+0000", "updated": "2012-03-30T09:09:51.000+0000" }, { "id": "189490", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Okay, here's the funny story: As far as I can tell, UIPopover does not have a simple background color property. Instead, it allows you to re-implement the background view. That is, provide the graphics (Sans shadow) that make up the frame of the popover. The catch is that this is per-class, not per instance, and there's no way to pass on property values.\r\n\r\nShort version: Are they okay with this being a single style, and that they will have to provide graphics instead of a color?", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-02T10:45:37.000+0000", "updated": "2012-04-02T10:46:14.000+0000" }, { "id": "189495", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "Interesting. So there's no way to customize the color of the UIPopoverBackgroundView? I just read the docs and see what you're saying - sounds like we'd be responsible for adding the border images and all that as well? Is that correct?\r\n\r\nYes we're fine with doing that.", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2012-04-02T10:51:55.000+0000", "updated": "2012-04-02T10:51:55.000+0000" }, { "id": "189528", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Exactly that, yes. From the sample code floating around (unfortunately, none of it from Apple), it looks like we'll have to define several images to use, not just a background image, but images for the arrows in each direction.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-02T13:04:59.000+0000", "updated": "2012-04-02T13:05:35.000+0000" }, { "id": "189532", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "Ok makes sense. We're ok with that on our end. The popover design they have is slightly customized all around anyway so this is probably the best thing. Just so I fully understand: The popover design will be a universal thing? e.g. we define those images upfront and that's how all the popovers will look? How will we define this up front? tiapp.xml?", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2012-04-02T13:09:36.000+0000", "updated": "2012-04-02T13:09:36.000+0000" }, { "id": "189589", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I wouldn't suggest tiapp.xml, and I want something that will last a while if this is making it into core. There's a lot of variables, and the sample code has a lot of hardwiring I have to abstract out. On the native side, there's issues like: view placement, content margins, arrow width and arrow height. On the Titanium side, the issues are what properties to expose and which to calculate or hardwire, how to expose them, and what property names should they have?\r\n\r\nThe documentation is very sparse, and I'll have to look about to see if there's any template images we can use as a source, unless they already have a customized design I can use as a prototype?", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-02T19:04:32.000+0000", "updated": "2012-04-02T19:04:32.000+0000" }, { "id": "191268", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Much belated, but now a custom module pull request pending. https://github.com/appcelerator/titanium_modules/pull/30", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-16T18:24:40.000+0000", "updated": "2012-04-16T18:24:40.000+0000" }, { "id": "192695", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As the pull request has been accepted, marking this fixed.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-25T18:09:35.000+0000", "updated": "2012-04-25T18:09:35.000+0000" }, { "id": "411518", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-13T20:33:20.000+0000", "updated": "2017-03-13T20:33:20.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }