popover

iOS 8 - UIPopoverPresentationController moving popover

为君一笑 提交于 2019-11-30 02:19:55
I am looking for an effective way to re-position a popover using the new uipopoverpresentationcontroller. I have succesfully presented the popover, and now I want to move it without dismissing and presenting again. I am having trouble using the function: (void)popoverPresentationController:(UIPopoverPresentationController *)popoverPresentationController willRepositionPopoverToRect:(inout CGRect *)rect inView:(inout UIView **)view I know it's early in the game, but it anyone has an example of how to do this efficiently I would be grateful if you shared it with me. Thanks in advance. Rowan Jones

How to use Storyboard to make popover that can be used in code?

纵饮孤独 提交于 2019-11-29 22:40:43
I'm building a collection of forms each of which contains several fields. Some of the fields are UITextField s that will display a date. I've created a new class called DatePickerTextField , a descendant of UITextField . When a DatePickerTextField is tapped I'd like for a UIDatePicker control to appear in a popover . My question is how do I use the storyboard to implement the popover ? I can do a segue when there is a specific, visible control in the scene. But how do I represent a generic popover in the scene that I can attach to any instantiated DatePickerTextField that becomes active? You

How do I make a Menubar Application with a NSPopover?

☆樱花仙子☆ 提交于 2019-11-29 20:43:40
I have seen a lot of applications with a Menubar Item or applications with only a Menubar interface. There are some tutorials and stuff on the internet showing you how to accomplish that. But the thing is, those do only have clickable index rows in them. I would want to have a NSPopover appear when you click the Menubar Icon / Item. Anybody who knows how to make this? I don't know if it can be done with a standard status bar item. Using a custom view for the menulet it's relatively easy. Create a status bar item with a custom view: item = [[NSStatusBar systemStatusBar] statusItemWithLength

UICollectionView images not showing

假如想象 提交于 2019-11-29 16:04:11
I have an issue with the images not showing, even though they are loading. I have tried this several different ways and the same result... no images. I do get white rectangles that are the size and color specified in the Storyboard. I get the correct number of rectangles in the popover. The log shows the names and ids correctly. If I call the array directly, I get the same result... white rectangles. My target is iOS7. Running Xcode 5.0.2. Images are coming from a SQL database. This is a live app, which I am updating to full iOS7 and where I am swapping out a custom grid layout for

Angular-ui + D3: how to implement contextual menu (popover vs modal)?

点点圈 提交于 2019-11-29 14:59:33
问题 Given the following use-case: I use D3js to render objects which are managed by AngularJS. I would like to add interactivity to the D3 chart. When clicking on a svg element I would like to have a kind of popup menu allowing to modify the object properties. These properties are required by AngularJS but are not rendered by D3. The D3-Angular integration is derived from http://bl.ocks.org/biovisualize/5372077 which uses a closure. Current implementation: As of today I am using the $modal

Knockout Twitter Bootstrap Popover Binding

流过昼夜 提交于 2019-11-29 14:51:50
问题 I am trying to create a custom binding for twitter boostrap popovers that references a template but I am having trouble with the binding part of the content inside of the popover once it has been created. I have seen this question asked before but I feel like they were mostly pretty messy and I am pretty close to a reusable solution that uses templates how I want to. http://jsfiddle.net/billpull/Edptd/ // Bind Twitter Popover ko.bindingHandlers.popover = { init: function(element,

Using Angular inside of a bootstrap popover

匆匆过客 提交于 2019-11-29 11:33:57
I'm trying to create a table inside a Bootstrap popover that has an ng-repeat to make the rows but it seems like the angular is failing and I'm not sure why. HTML: <a id="showDays" type="button" class="btn btn-success btn-xs pull-right" data-toggle="popover" data-placement="left" data-html="true" title="Popover title" data-content= '<table class="table table-condensed"> <tbody> <tr ng-repeat="d in days"> <td>{{d}}</td> </tr> </tbody> </table>'> <i class="fa fa-clock-o fa-lg"></i> </a> <script type="text/javascript" > $('#showDays').popover(); </script> Controller: $scope.days = [ 'Sunday',

Bootstrap popover destroy & recreate works only every second time

旧巷老猫 提交于 2019-11-29 11:17:04
问题 I want to programmatically destroy & recreate a specific Bootstrap popover. So what I do is: $('#popoverspan').popover('destroy'); $('#popoverspan').popover({placement : 'bottom', trigger : 'hover', content : 'Here it is!'}); And it works every second time only. I thought that it's the matter of the time it takes to destroy the popover, but even adding a delay between the two lines doesn't help. I recreated the problem in JSFiddle: http://jsfiddle.net/Lfp9ssd0/10/ Why is it like that? It has

twitter bootstrap popover doesn't work with angularjs

不羁的心 提交于 2019-11-29 09:15:31
I was trying to use twitter bootstrap popover on my webpage when I discover that it doesn't work when it is placed below a <div> with ng-repeat . It works fine at the top within a div class that doesn't contain ng- does anyone know why did it happen and how can I work around the issue? <h3>Students Without Team</h3> <div class="accordion" id="studentNoTeamAccordion" > <a href="#" class="btn btn-large btn-primary" rel="popover"data-html="true" data-content=" <form> <textarea class='input-xlarge' rows='12' type='text'></textarea> <P> <input class='btn btn-primary' type='submit' value='Send' /> <

Bootstrap 3 Popover arrow and box positioning

梦想的初衷 提交于 2019-11-29 06:53:50
问题 I am using Bootstrap 3 popovers to display information about a link on hover, before clicking the link. It's currently working at the moment, however, The links are displayed from a dropdown menu at the top of the page. When the first link has a lot of information about it, the top of the popover disappears at the top of the page, so you cannot see the content of it. I am trying to make it so that the popover arrow appears at the top-left of the popover(as opposed to middle-left which it is