uibezierpath Questions
4
Solved
I have a UIBezierPath and I would like to get its mirror image. How can I accomplish this?
// Method for generating a path
UIBezierPath *myPath = [self generateAPathInBounds:boundingRect];
// ...
Calvo asked 6/1, 2014 at 20:11
4
Solved
I have an app where I take a UIBezierPath and use it as a brush by a series of appendPath: calls. After a few goes and with really complex brush shapes the memory runs out and the app grinds to a h...
Ranite asked 6/5, 2014 at 14:35
8
Solved
I have designed the following code to generate a UIBezierPath. This path is used within a CAShapeLayer to mask a UIView. Note, the view's height and width are variable.
This code generates a triang...
Stantonstanway asked 7/12, 2013 at 13:59
4
Solved
I have a strange question. Even though I did read a lot of tutorials on how to do this, the final result only shows the bezier line, not any shadow whatsoever. My code is pretty simple :
let borde...
Barajas asked 18/3, 2015 at 15:36
5
I'm trying to figure out how to mask a UIView to display a shape that represents a Square with half of a circle sitting ontop of it.
Basically, it would be like applying a border radius to only t...
Discard asked 19/1, 2016 at 13:35
5
I'm facing trouble switching colours when change mode in iOS 13.
The problem is when you see the app in recent apps. UIColors will change but cgColor will not change.
It will change effectively w...
Dingus asked 26/2, 2020 at 23:4
6
Solved
I created a rectangle using following code and now I need to rounded the corners of this rectangle. but I can't find a property called layer.cornerRadius, can anyone help me ?
class OvalLayer: CAS...
Bituminize asked 28/1, 2016 at 5:54
4
Solved
I can't figure this out... I'm playing with
-[UIBezierPath bezierPathWithRoundedRect:byRoundingCorners:cornerRadii:] as such:
bezierPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(10, 1...
Alright asked 18/9, 2013 at 19:41
3
Solved
I am trying to round top corners using below code
func roundCorners(corners:UIRectCorner, radius: CGFloat) {
let path = UIBezierPath(roundedRect: self.bounds,
byRoundingCorners: corners,
corne...
Daile asked 12/9, 2017 at 15:0
4
Solved
I have coded as below for half circle in iOS using UIBezierPath and CAShapeLayer.
clockWiseLayer = [[CAShapeLayer alloc] init];
CGFloat startAngle = -M_PI_2;
CGFloat endAngle = M_PI + M_PI_2;
C...
Rood asked 23/8, 2015 at 9:17
3
Solved
I have added these lines of code:
var radius: CGFloat = UIScreen.mainScreen().bounds.width - 60
let path: UIBezierPath = UIBezierPath(roundedRect: CGRect(x: 0, y: 0, width: UIScreen.mainScreen()...
Hards asked 22/1, 2016 at 8:13
3
Solved
This is for an iPad application, but it is essentially a math question.
I need to draw a circular arc of varying (monotonically increasing) line width. At the beginning of the curve, it would have...
Kirbee asked 7/7, 2012 at 20:4
2
The simple UIView below draws a rounded rectangle. When I pass a corner radius of 65 or below it rounds correctly, but 66 and above and it generates a perfect circle! What is going on here? It shou...
Intenerate asked 24/7, 2014 at 14:7
2
Solved
This is the code I am using
extension UIImage {
var ellipseMasked: UIImage? {
guard let cgImage = cgImage else { return nil }
let rect = CGRect(origin: .zero, size: size)
return UIGraphicsIm...
Wilmer asked 18/1, 2020 at 21:32
2
Solved
I simply do the following in code:
let path = UIBezierPath(rect: blurView.bounds)
path.usesEvenOddFillRule = true
path.append(UIBezierPath(rect: CGRect(x: 100, y: 100, width: 100, height: 100)))...
Nabob asked 3/6, 2022 at 10:48
4
Solved
I'm trying to draw a simple Parabola shape using UIBezierPath. I have a maxPoint and a boundingRect of which I'm basing the width and stretch of the parabola.
Here's the function I made to draw the...
Auctioneer asked 2/8, 2016 at 14:19
9
Solved
By using [UIBezierPath bezierPathWithRoundedRect:byRoundingCorners:cornerRadii:], I am able to create a rounded view, such as this:
How could I subtract another path from this one (or some other...
Renteria asked 14/1, 2012 at 1:8
5
Solved
How do I fill a CAShapeLayer() with a gradient and on an angle of 45 degrees?
For example, in Image 1, the below code draws a square and fills the layer blue (UIColor.blueColor().CGColor).
But, h...
Askins asked 7/12, 2016 at 14:14
5
I am using UIBezierPath to have my imageview have round corners but I also want to add a border to the imageview. Keep in mind the top is a uiimage and the bottom is a label.
Currently using this ...
Agaric asked 16/8, 2015 at 3:50
3
I've created a class that draws a coffee mug using code I imported from PaintCode and I applied this class to a view. Using @IBDesignable, I can see in my storyboard that the mug is being drawn ins...
Trousseau asked 24/8, 2014 at 5:48
2
Solved
Is there a way to convert UIBezierPath to PKStrokePath ?
for example I have these path as UIBezierPath
how can I convert it to PKStrokePath to use it in PKDrawing ?
let shape = UIBezierPath()
shape...
Verisimilitude asked 15/8, 2021 at 8:4
2
Solved
I need to draw and get coordinates of bezier curves of each steps with native Javascript without ctx.bezierCurveTo method.
I found several resources, but I confused. Esspecially this looks pretty ...
Brodeur asked 26/4, 2013 at 1:25
12
Solved
I'm trying to get a "speech bubble" effect similar to the one in Mac OS X when you right click on something in the dock. Here's what I have now:
I need to get the "triangle" part of the lower po...
Prodigal asked 14/12, 2010 at 17:26
2
Solved
Does anyone know how to place images along a bezier path? I can write the path fine and animate a sprite along the path but I want to make the path a series of arrows instead of dotted lines. I ass...
Polite asked 30/9, 2014 at 3:52
10
Solved
I'm drawing a graph in my application. My problem is that I want to draw line joining vertex points as curves. Currently I'm drawing them with UIBezierPath's function addLineToPoint:. I want to dra...
Atronna asked 5/12, 2012 at 8:38
1 Next >
© 2022 - 2024 — McMap. All rights reserved.