Border around UIPopover arrow - ios

I have a UIPopover View where I added a 1pt border around to help differentiate between the Popover content and the content underneath. Does anyone know of a way to continue the border around the arrow?
I've tried adding the border to:
self.tableview.layer;
self.view.layer;
self.view.superview.layer;
None of them seem to apply to the arrow.
Here's a picture for reference:

Related

Stroke Around View From Keyboard

I have a dark background in my application. When the keyboard comes on screen it creates a stroke around the view that contains the UITextField or UITextView. Is this a bug? Does anyone know of a workaround?
In the picture attached you'll see a white stroke going around the view under the top bar.

How to make a triangle on top of the UIView

How can a make a triangle on top of the UIView as a anchor to a UIButton, like in the picture below? I want the triangle to change the position when the other Button is selected. Please only answers written in swift. :)
Your screen shot displays a popover. Use a UIPopoverController and you'll get the triangle automatically.
Sometimes solutions are simpler then expected. Just draw all three triangles in storyboard. Then in your UIController you use the hidden flag to show or hide the triangle.

mysterious white antialiasing behind UIImageView

I'm using a PageViewController to swipe through a series of daily ViewControllers for a week.
The UIViewController that contains the pageViewController contains a few navigation items that do not scroll with the pageViewController. These stay stationary as you swipe. One of these items is a UIImageView, more specifically a UIButton with an UIImageView image representation.
The trouble I'm having is that this stationary UIImageView has a thin white border to it when it should not. I'm giving it a rounded appearance by using rounded corners that are the size of the image. It is easiest seen in this photo. Note, the white "halo" is not part of the image, it appears for any image. The borderColor, imageBackground, view background, and parent view backgrounds are all clearColor. The red background below is part of the swipeable viewController. Interestingly, the white border only appears when it is stationary. If the image/button is placed in the swipeable View it looks great.
Any thoughts how I can get rid of this white antialiasing?
I changed the button's image from using the backgroundImage to just the image property and the white went away entirely. Glad for an easy fix, hope this helps someone else.

iOS border in UIProgressView

is there any way to add border around UIProgressView in iOS7? I dont find any property in storyboard. I've try do it like that also:
progressView.layer.borderWidth = 0.07;
but it gives me only border on top and bottom of progressView but not on the sides.
Consider adding your progress view as the subview of another view, where the container view has a border, or a background colour as required.

Missing shadow (hairline) on iOS7 UIToolbar

In iOS7, UIToolbar does not appear to have a little line (the shadow) on the top or bottom borders, which makes it difficult to distinguish from the rest of the app. How can I restore the shadow at the bottom of the toolbar when it is at the top of the screen?
EDIT: I should clarify that my toolbar is positioned at the top of the screen. After moving things around I realized that it IS drawing a shadow, but it's on the top, and therefore off-screen. What I want is for the shadow to appear at the bottom like a UINavigationBar.
This is because, by default, toolbars are attached to bottom, so the shadow line appears at the top (if they are at the bottom). You need to set the delegate of the toolbar and implement the following UIBarPositioningDelegate method like so:
- (UIBarPosition)positionForBar:(id<UIBarPositioning>)bar
{
return UIBarPositionTop; //or UIBarPositionTopAttached
}
I just ran into a case where a view was positioned between a top and bottom toolbar and configured to auto-resize to fill the space. However, it was layered above the bottom toolbar and the auto-resize made it cover the bottom toolbar's top shadow. The solution was to adjust the layering in Interface Builder so the toolbars were layered above the other views.

Resources